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

testFilteringWithProtectedAccess() public method

Verifies workaround for accessing protected properties in filtered methods.
    public function testFilteringWithProtectedAccess()
    {
        $object = new MockExposed();
        $this->assertEqual($object->get(), 'secret');
        $this->assertTrue($object->tamper());
        $this->assertEqual($object->get(), 'tampered');
    }