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

testRuleWithCallable() public method

    public function testRuleWithCallable()
    {
        $this->rule->expects($this->once())->method('getInputType')->will($this->returnValue(CallbackRule::CALLABLE_TYPE));
        $this->rule->callback = array('DMS\\Tests\\Dummy\\Classes\\AnnotatedClass', 'anotherCallback');
        $result = $this->filter->apply($this->rule, 'value');
        $this->assertEquals('called_back', $result);
    }