lithium\tests\mocks\core\MockExposed::get PHP Метод

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

public get ( )
    public function get()
    {
        return $this->_internal;
    }

Usage Example

Пример #1
0
 /**
  * Verifies workaround for accessing protected properties in filtered methods.
  *
  * @return void
  */
 function testFilteringWithProtectedAccess()
 {
     $object = new MockExposed();
     $this->assertEqual($object->get(), 'secret');
     $this->assertTrue($object->tamper());
     $this->assertEqual($object->get(), 'tampered');
 }
MockExposed