/** * @expectedException Respect\Validation\Exceptions\ComponentException */ public function testInvalidCallbacksShouldRaiseComponentExceptionUponInstantiation() { $v = new Callback(new \stdClass()); $this->assertTrue($v->assert('w poiur')); }
/** * @expectedException Respect\Validation\Exceptions\ComponentException */ public function test_invalid_callbacks_should_raise_ComponentException_upon_instantiation() { $v = new Callback(new \stdClass()); $this->assertTrue($v->assert('w poiur')); }