mirror of
https://github.com/vlucas/valitron.git
synced 2025-12-31 07:01:54 +00:00
test for the change
This commit is contained in:
parent
c729a0c4ac
commit
05b5c40515
@ -617,6 +617,13 @@ class ValidateTest extends BaseTestCase
|
|||||||
$this->assertFalse($v->validate());
|
$this->assertFalse($v->validate());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function testNoErrorFailOnArray()
|
||||||
|
{
|
||||||
|
$v = new Validator(array('test' => []));
|
||||||
|
$v->rule('slug', 'test');
|
||||||
|
$this->assertFalse($v->validate());
|
||||||
|
}
|
||||||
|
|
||||||
public function testRegexValid()
|
public function testRegexValid()
|
||||||
{
|
{
|
||||||
$v = new Validator(array('test' => '42'));
|
$v = new Validator(array('test' => '42'));
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user