view = new TestHtmlView($this->container); } public function testRenderTemplate() { $path = _dir(self::TEST_VIEW_DIR, 'test_view.php'); $expected = 'foo'; $actual = $this->view->render_template($path, [ 'var' => 'foo' ]); $this->assertEquals($expected, $actual); } }