protected function setUp()
{
parent::setUp();
// Set the dispatcher
$this->di->setShared('dispatcher', function () {
$dispatcher = new PhDispatcher();
$dispatcher->setControllerName('test');
$dispatcher->setActionName('empty');
$dispatcher->setParams([]);
return $dispatcher;
});
$this->di->set('escaper', function () {
return new PhEscaper();
});
if ($this->di instanceof DiInterface) {
$this->application = new PhApplication($this->di);
}
}