lithium\tests\cases\core\ObjectTest::testResetMultipleFilters PHP Method

testResetMultipleFilters() public method

    public function testResetMultipleFilters()
    {
        $obj = new MockMethodFiltering();
        $obj->applyFilter(false);
        $obj->applyFilter(array('method2', 'manual'), function ($self, $params, $chain) {
            return false;
        });
        $this->assertFalse($obj->method2());
        $this->assertFalse($obj->manual(array()));
        $obj->applyFilter('method2', false);
        $this->assertNotIdentical($obj->method2(), false);
        $this->assertFalse($obj->manual(array()));
    }