diff --git a/tests/AppTest.php b/tests/AppTest.php index da47675..ff03634 100644 --- a/tests/AppTest.php +++ b/tests/AppTest.php @@ -185,7 +185,7 @@ public function testDispatcherShouldBeCallable() public function testWithInternalContainerFactory() { - chdir(dirname(__DIR__.'/../')); + chdir(__DIR__.'/app'); $app = new App(); $request = (new Request()) diff --git a/tests/app/config/first.php b/tests/app/config/first.php index c33737b..712eb86 100644 --- a/tests/app/config/first.php +++ b/tests/app/config/first.php @@ -1,6 +1,9 @@ \FastRoute\simpleDispatcher(function (\FastRoute\RouteCollector $r) { + $r->addRoute('GET', '/', ['TestApp\Controller\Index', 'index']); + }), 'one' => 1, 'two' => [ 'class' => new \StdClass(), diff --git a/tests/config/app.test.config.php b/tests/config/app.test.config.php deleted file mode 100644 index 3c568e2..0000000 --- a/tests/config/app.test.config.php +++ /dev/null @@ -1,7 +0,0 @@ - \FastRoute\simpleDispatcher(function (FastRoute\RouteCollector $r) { - $r->addRoute('GET', '/', ['TestApp\Controller\Index', 'index']); - }) -];