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

testResetClass() public method

public testResetClass ( )
    public function testResetClass()
    {
        $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(false);
        $this->assertNotIdentical($obj->method2(), false);
        $this->assertNotIdentical($obj->manual(array()), false);
    }