[HttpKernel] fixed unit tests when run standalone (closes #4266, patch from Gator92)

This commit is contained in:
Fabien Potencier 2012-05-15 08:39:01 +02:00
parent 85b2cc5916
commit 6bcdd321e6

View File

@ -19,7 +19,7 @@ class TestClient extends Client
{
$script = parent::getScript($request);
$script = preg_replace('/(\->register\(\);)/', "$0\nrequire_once '".__DIR__."/../TestHttpKernel.php';", $script);
$script = preg_replace('/(\->register\(\);)/', "$0\nrequire_once '".__DIR__."/../bootstrap.php';", $script);
return $script;
}