lithium\tests\cases\core\ObjectTest::testResetMethodFilter PHP Метод

testResetMethodFilter() публичный Метод

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