DMS\Filter\Filters\CallbackTest::testRuleWithObjectMethod PHP Method

testRuleWithObjectMethod() public method

    public function testRuleWithObjectMethod()
    {
        $this->rule->expects($this->once())->method('getInputType')->will($this->returnValue(CallbackRule::SELF_METHOD_TYPE));
        $this->rule->callback = 'callbackMethod';
        $obj = new AnnotatedClass();
        $this->filter->setCurrentObject($obj);
        $result = $this->filter->apply($this->rule, 'value');
        $this->assertEquals('called_back', $result);
    }