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 4aab341 commit 05dc0e1Copy full SHA for 05dc0e1
src/Symfony/Bundle/FrameworkBundle/Test/WebTestCase.php
@@ -124,7 +124,15 @@ private static function getPhpUnitCliConfigArgument()
124
*/
125
protected static function getKernelClass()
126
{
127
- $dir = isset($_SERVER['KERNEL_DIR']) ? $_SERVER['KERNEL_DIR'] : static::getPhpUnitXmlDir();
+ $dir = $phpUnitDir = static::getPhpUnitXmlDir();
128
+
129
+ if (isset($_SERVER['KERNEL_DIR'])) {
130
+ $dir = $_SERVER['KERNEL_DIR'];
131
132
+ if (!is_dir($dir) && is_dir("$phpUnitDir/$dir")) {
133
+ $dir = "$phpUnitDir/$dir";
134
+ }
135
136
137
$finder = new Finder();
138
$finder->name('*Kernel.php')->depth(0)->in($dir);
0 commit comments