public setCurrentObject ( $object ) : object | ||
$object | ||
리턴 | object | mixed |
public function setCurrentObject($object)
{
$this->currentObject = $object;
}
/** * @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'); }