lithium\tests\cases\template\helper\HtmlTest::setUp PHP Метод

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

Initialize test by creating a new object instance with a default context.
public setUp ( )
    public function setUp()
    {
        $this->_routes = Router::get();
        Router::reset();
        Router::connect('/{:controller}/{:action}/{:id}.{:type}');
        Router::connect('/{:controller}/{:action}.{:type}');
        $this->context = new MockRenderer(array('request' => new Request(array('base' => '', 'env' => array('HTTP_HOST' => 'foo.local'))), 'response' => new Response()));
        $this->html = new Html(array('context' => &$this->context));
    }