10000 Get KERNEL_DIR through $_ENV too for KernelTestCase · symfony/symfony@cf11fb9 · GitHub
[go: up one dir, main page]

Skip to content

Commit cf11fb9

Browse files
committed
Get KERNEL_DIR through $_ENV too for KernelTestCase
1 parent d1fe415 commit cf11fb9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Symfony/Bundle/FrameworkBundle/Test/KernelTestCase.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,8 @@ private static function getPhpUnitCliConfigArgument()
105105
*/
106106
protected static function getKernelClass()
107107
{
108-
if (isset($_SERVER['KERNEL_DIR'])) {
109-
$dir = $_SERVER['KERNEL_DIR'];
108+
if (isset($_SERVER['KERNEL_DIR']) || isset($_ENV['KERNEL_DIR'])) {
109+
$dir = isset($_SERVER['KERNEL_DIR']) ? $_SERVER['KERNEL_DIR'] : $_ENV['KERNEL_DIR'];
110110

111111
if (!is_dir($dir)) {
112112
$phpUnitDir = static::getPhpUnitXmlDir();

0 commit comments

Comments
 (0)
0