Skip to content

Commit

Permalink
Merge pull request #10 from braincrafted/find-app-kernel
Browse files Browse the repository at this point in the history
Try to find AppKernel.php
  • Loading branch information
Florian Eckerstorfer committed Oct 26, 2014
2 parents a6bb0cf + 15bf196 commit 07842b0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Test/WebTestCase.php
Expand Up @@ -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';
}
Expand Down

0 comments on commit 07842b0

Please sign in to comment.