public function testDisplay() { $view = new View(); $view->name = 'Tlumx'; $path = sys_get_temp_dir(); $file = @tempnam($path, 'tlumx_view_'); file_put_contents($file . '.phtml', 'Hello, <?php echo $this->name; ?>!'); $view->setTemplatesPath($path); $template = ltrim(substr($file, strlen($path)), DIRECTORY_SEPARATOR); $view->display($template); $this->expectOutputString("Hello, Tlumx!"); unlink($file); }