public function testValidatorShouldFailOnInvalidItem() { $v = new Each(new NotEmpty()); $result = $v->validate(array('', 2, 3, 4, 5)); $this->assertFalse($result); }
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); }