lithium\tests\mocks\action\MockRenderAltController::access PHP Method

access() public method

public access ( $var )
    public function access($var)
    {
        return $this->{$var};
    }

Usage Example

Example #1
0
 public function testRenderPropertyInheritance()
 {
     $controller = new MockRenderAltController();
     $expected = array('data' => array('foo' => 'bar'), 'layout' => 'alternate', 'type' => null, 'auto' => true, 'template' => null, 'hasRendered' => false, 'negotiate' => false);
     $result = $controller->access('_render');
     $this->assertEqual($expected, $result);
 }
MockRenderAltController