From 15bf196a387c7ce14b9202184e6d614a158f95e4 Mon Sep 17 00:00:00 2001 From: Florian Eckerstorfer Date: Sun, 26 Oct 2014 22:42:14 +0100 Subject: [PATCH] Try to find AppKernel.php Try to find AppKernel.php using a standard path before falling back to requiring KERNEK_DIR constant --- Test/WebTestCase.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Test/WebTestCase.php b/Test/WebTestCase.php index 961762c..5a7c30c 100644 --- a/Test/WebTestCase.php +++ b/Test/WebTestCase.php @@ -91,6 +91,9 @@ protected function tearDownKernel() */ protected function createKernel(array $options = array()) { + if (!class_exists('\AppKernel') && file_exists(__DIR__.'/../../../../../../../app/AppKernel.php')) { + require_once __DIR__.'/../../../../../../../app/AppKernel.php'; + } if (!class_exists('\AppKernel')) { require_once $_SERVER['KERNEL_DIR'].'/AppKernel.php'; }