From 8a8ae856fa743cc8359a6f1c02d833cfe13cccff Mon Sep 17 00:00:00 2001 From: Gianluca Arbezzano Date: Sat, 3 Oct 2015 00:58:38 +0200 Subject: [PATCH] Fixed for case insensitive file system --- tests/AppTest.php | 2 +- tests/app/config/first.php | 3 +++ tests/config/app.test.config.php | 7 ------- 3 files changed, 4 insertions(+), 8 deletions(-) delete mode 100644 tests/config/app.test.config.php 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']); - }) -];