Ejemplo n.º 1
0
 /**
  * Setup multi builder for empty object
  * @expectedException \Bluz\Validator\Exception\ValidatorException
  */
 public function testValidatorBuilderForEmptySet()
 {
     $validator = new ValidatorBuilder();
     $validator->add('foo', Validator::required());
     $validator->add('bar', Validator::numeric());
     $this->assertFalse($validator->validate([]));
     $this->assertFalse($validator->assert([]));
 }