public renderView ( $view, array $vars = [], $ignored = false, $viewtype = '', $issue_missing_notice = true ) | ||
$vars | array |
public function testCanAlterViewOutput() { $this->hooks->registerHandler('view', 'js/interpreted.js', function ($h, $t, $v, $p) { return '// Hello'; }); $this->assertEquals("// Hello", $this->views->renderView('js/interpreted.js')); }