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