Ejemplo n.º 1
0
 /**
  * @expectedException Respect\Validation\Exceptions\BoolException
  */
 public function testInvalidBooleanShouldRaiseException()
 {
     $validator = new Bool();
     $this->assertFalse($validator->check('foo'));
 }
Ejemplo n.º 2
0
 /**
  * @expectedException Respect\Validation\Exceptions\BoolException
  */
 public function test_invalid_boolean_should_raise_exception()
 {
     $validator = new Bool();
     $this->assertFalse($validator->check('foo'));
 }