[HttpKernel] fixed unit tests when run standalone (closes #4266, patch from Gator92)
This commit is contained in:
parent
85b2cc5916
commit
6bcdd321e6
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user