/** * @covers \NewFrontiers\Framework\Output\Template::display */ public function testDisplay() { Template::load('test', true); Template::display(); $this->expectOutputString("Default template"); }
/** * Äußeres Template ausgeben * @param View $view */ protected function display(View $view) { Profiler::startSection('Application.display'); // Gibt es überhaupt was zum Ausgeben? Übertragen von displayMain if ($view !== null) { $this->view = $view; if ($this->template === null) { $this->template = Configuration::get('template'); } Template::load($this->template, true); Template::display(); } else { Logging::error('Kein View zum Anzeigen gefunden'); $this->showError(); } Profiler::endSection('Application.display'); }