8000 [FrameworkBundle] Add case in Kernel directory guess for PHPUnit · symfony/symfony@758fc1d · GitHub
[go: up one dir, main page]

Skip to content

Commit 758fc1d

Browse files
committed
[FrameworkBundle] Add case in Kernel directory guess for PHPUnit
1 parent e9b8aae commit 758fc1d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,10 +103,14 @@ private static function getPhpUnitCliConfigArgument()
103103
if (preg_match('/^-[^ \-]*c$/', $testArg) || $testArg === '--configuration') {
104104
$dir = realpath($reversedArgs[$argIndex - 1]);
105105
break;
106-
} elseif (strpos($testArg, '--configuration=') === 0) {
106+
} elseif (0 === strpos($testArg, '--configuration=')) {
107107
$argPath = substr($testArg, strlen('--configuration='));
108108
$dir = realpath($argPath);
109109
break;
110+
} elseif (0 === strpos($testArg, '-c')) {
111+
$argPath = substr($testArg, strlen('-c'));
112+
$dir = realpath($argPath);
113+
break;
110114
}
111115
}
112116

0 commit comments

Comments
 (0)
0