From 41abcff3b8dcc3c48cddfc32f453c89acef4d0ad Mon Sep 17 00:00:00 2001 From: abluchet Date: Thu, 28 Jun 2018 11:17:25 +0200 Subject: [PATCH] Add index.php for test purpose Usage: php -S localhost:8888 -t tests/Fixtures/app/public/ --- tests/Fixtures/app/public/index.php | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 tests/Fixtures/app/public/index.php diff --git a/tests/Fixtures/app/public/index.php b/tests/Fixtures/app/public/index.php new file mode 100644 index 00000000000..f5bec2908d8 --- /dev/null +++ b/tests/Fixtures/app/public/index.php @@ -0,0 +1,22 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +declare(strict_types=1); + +use Symfony\Component\HttpFoundation\Request; + +require __DIR__.'/../bootstrap.php'; +$env = $_SERVER['APP_ENV'] ?? 'test'; +$kernel = new AppKernel($env, $_SERVER['APP_DEBUG'] ?? ('prod' !== $env)); +$request = Request::createFromGlobals(); +$response = $kernel->handle($request); +$response->send(); +$kernel->terminate($request, $response);