Skip to content

Commit

Permalink
Test case for phalcon#2096
Browse files Browse the repository at this point in the history
  • Loading branch information
sjinks committed Mar 7, 2014
1 parent 064be8b commit ea03efd
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions ext/tests/issue-2096.phpt
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
--TEST--
Custom validator = signal aborted - https://github.com/phalcon/cphalcon/issues/2096
--SKIPIF--
<?php include('skipif.inc'); ?>
--FILE--
<?php
class MyValidation extends \Phalcon\Validation
{
}

$v = new \MyValidation();
$v->add('username', new \Phalcon\Validation\Validator\PresenceOf());
$v->validate(array());
?>
--EXPECT--

0 comments on commit ea03efd

Please sign in to comment.