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