Skip to content

Commit 74b70ab

Browse files
committed
AnalyseApplicationIntegrationTest - use output as assert error description
1 parent 317a09d commit 74b70ab

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: tests/PHPStan/Command/AnalyseApplicationIntegrationTest.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,6 @@ private function runPath(string $path, int $expectedStatusCode): string
9393
unlink($memoryLimitFile);
9494
}
9595
$statusCode = $errorFormatter->formatErrors($analysisResult, $symfonyOutput);
96-
$this->assertSame($expectedStatusCode, $statusCode);
9796

9897
rewind($output->getStream());
9998

@@ -102,6 +101,8 @@ private function runPath(string $path, int $expectedStatusCode): string
102101
throw new ShouldNotHappenException();
103102
}
104103

104+
$this->assertSame($expectedStatusCode, $statusCode, $contents);
105+
105106
return $contents;
106107
}
107108

0 commit comments

Comments
 (0)