Thanks to visit codestin.com Credit goes to github.com
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 d1fe415 commit cf11fb9Copy full SHA for cf11fb9
src/Symfony/Bundle/FrameworkBundle/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