mirror of
https://github.com/vlucas/valitron.git
synced 2025-12-30 23:01:52 +00:00
test for the bug
This commit is contained in:
parent
e8ab4dc157
commit
66464f4c51
@ -34,6 +34,13 @@ class ValidateTest extends BaseTestCase
|
|||||||
$v->rule('required', array('name', 'email'));
|
$v->rule('required', array('name', 'email'));
|
||||||
$this->assertFalse($v->validate());
|
$this->assertFalse($v->validate());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function testRequiredSubfieldsArrayStringValue()
|
||||||
|
{
|
||||||
|
$v = new Validator(array('name' => 'bob'));
|
||||||
|
$v->rule('required', array('name.*.red'));
|
||||||
|
$this->assertFalse($v->validate());
|
||||||
|
}
|
||||||
|
|
||||||
public function testRequiredValid()
|
public function testRequiredValid()
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user