Пример #1
0
 public function testValidatorShouldFailOnInvalidItem()
 {
     $v = new Each(new NotEmpty());
     $result = $v->validate(array('', 2, 3, 4, 5));
     $this->assertFalse($result);
 }
Пример #2
0
 public function test_validator_should_fail_on_invalid_item()
 {
     $v = new Each(new NotEmpty());
     $result = $v->validate(array('', 2, 3, 4, 5));
     $this->assertFalse($result);
 }