We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5238cde commit cce752aCopy full SHA for cce752a
src/Printer.php
@@ -51,10 +51,13 @@ function ($l) {
51
$path = substr($error, 0, $lineIndex);
52
$line = substr($error, $lineIndex + 1);
53
54
- if (!$path) {
55
- list($path, $line) = $this->getReflectionFromTest(
56
- $defect->getTestName()
57
- );
+ list($reflectedPath, $reflectedLine) = $this->getReflectionFromTest(
+ $defect->getTestName()
+ );
+
58
+ if($path !== $reflectedPath) {
59
+ $path = $reflectedPath;
60
+ $line = $reflectedLine;
61
}
62
63
$message = explode("\n", $defect->getExceptionAsString());
0 commit comments