We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1f7ea09 commit 1dc6a03Copy full SHA for 1dc6a03
Test/KernelTestCase.php
@@ -105,8 +105,8 @@ private static function getPhpUnitCliConfigArgument()
105
*/
106
protected static function getKernelClass()
107
{
108
- if (isset($_SERVER['KERNEL_DIR'])) {
109
- $dir = $_SERVER['KERNEL_DIR'];
+ if (isset($_SERVER['KERNEL_DIR']) || isset($_ENV['KERNEL_DIR'])) {
+ $dir = isset($_SERVER['KERNEL_DIR']) ? $_SERVER['KERNEL_DIR'] : $_ENV['KERNEL_DIR'];
110
111
if (!is_dir($dir)) {
112
$phpUnitDir = static::getPhpUnitXmlDir();
0 commit comments