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

testRuleWithNonStaticCallable() public method

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