Get KERNEL_DIR through $_ENV too for KernelTestCase
This commit is contained in:
parent
d1fe4153a1
commit
cf11fb9652
|
@ -105,8 +105,8 @@ abstract class KernelTestCase extends TestCase
|
|||
*/
|
||||
protected static function getKernelClass()
|
||||
{
|
||||
if (isset($_SERVER['KERNEL_DIR'])) {
|
||||
$dir = $_SERVER['KERNEL_DIR'];
|
||||
if (isset($_SERVER['KERNEL_DIR']) || isset($_ENV['KERNEL_DIR'])) {
|
||||
$dir = isset($_SERVER['KERNEL_DIR']) ? $_SERVER['KERNEL_DIR'] : $_ENV['KERNEL_DIR'];
|
||||
|
||||
if (!is_dir($dir)) {
|
||||
$phpUnitDir = static::getPhpUnitXmlDir();
|
||||
|
|
Reference in New Issue