Skip to content

Commit

Permalink
merged branch vicb/httpkernel/tests (PR #5985)
Browse files Browse the repository at this point in the history
This PR was merged into the master branch.

Commits
-------

e32ca2b [HttpKernel] Fix Symfony2 full framework tests

Discussion
----------

[HttpKernel] Fix Symfony2 full framework tests

Fix the path when the full framework is used

---------------------------------------------------------------------------

by fabpot at 2012-11-12T09:08:06Z

When is it broken?

---------------------------------------------------------------------------

by vicb at 2012-11-12T09:18:01Z

now, https://travis-ci.org/symfony/symfony/jobs/3159326
  • Loading branch information
fabpot committed Nov 12, 2012
2 parents b392a47 + e32ca2b commit 99ee736
Showing 1 changed file with 6 additions and 1 deletion.
Expand Up @@ -19,7 +19,12 @@ protected function getScript($request)
{
$script = parent::getScript($request);

$script = preg_replace('/(\->register\(\);)/', "$0\nrequire_once '".__DIR__."/../../vendor/autoload.php';", $script);
$autoload = file_exists(__DIR__.'/../../vendor/autoload.php')
? __DIR__.'/../../vendor/autoload.php'
: __DIR__.'/../../../../../../../../autoload.php'
;

$script = preg_replace('/(\->register\(\);)/', "$0\nrequire_once '$autoload';\n", $script);

return $script;
}
Expand Down

0 comments on commit 99ee736

Please sign in to comment.