/** * @expectedException \DMS\Filter\Exception\InvalidCallbackException */ public function testRuleWithObjectMethodInvalid() { $this->rule->expects($this->once())->method('getInputType')->will($this->returnValue(CallbackRule::SELF_METHOD_TYPE)); $this->rule->callback = 'callbackMissingMethod'; $obj = new AnnotatedClass(); $this->filter->setCurrentObject($obj); $this->filter->apply($this->rule, 'value'); }