mirror of
https://github.com/vlucas/valitron.git
synced 2025-12-30 23:01:52 +00:00
adding nested different both unser required test
This commit is contained in:
parent
06d1740c32
commit
32dec57f69
@ -1405,6 +1405,13 @@ class ValidateTest extends BaseTestCase
|
|||||||
$this->assertFalse($v->validate());
|
$this->assertFalse($v->validate());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function testNestedDifferentBothUnset()
|
||||||
|
{
|
||||||
|
$v = new Validator(array('foo' => 'bar'));
|
||||||
|
$v->rule('different', 'foo.bar', 'foo.baz');
|
||||||
|
$this->assertTrue($v->validate());
|
||||||
|
}
|
||||||
|
|
||||||
public function testNestedDifferentBothUnsetRequired()
|
public function testNestedDifferentBothUnsetRequired()
|
||||||
{
|
{
|
||||||
$v = new Validator(array('foo' => 'bar'));
|
$v = new Validator(array('foo' => 'bar'));
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user