function rendering() { $view = new Php(); $view->setScriptLocator(function ($script) { return __DIR__ . '/../../Provider/View/' . $script . '.phtml'; }); $view->setScript('test'); $this->assert($view() === 'test', 'The view was not correctly rendered.'); }