Skip to content

Commit

Permalink
Update E2E test
Browse files Browse the repository at this point in the history
  • Loading branch information
ondrejmirtes committed Sep 16, 2021
1 parent c0ad14b commit 3a773ac
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/e2e/ResultCacheEndToEndTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ public function testResultCacheDeleteFile(): void
$fileHelper = new FileHelper(__DIR__);

$result = $this->runPhpstan(1);
$this->assertSame(4, $result['totals']['file_errors'], Json::encode($result));
$this->assertSame(5, $result['totals']['file_errors'], Json::encode($result));
$this->assertSame(0, $result['totals']['errors'], Json::encode($result));

$message = $result['files'][$fileHelper->normalizePath(__DIR__ . '/PHP-Parser/lib/PhpParser/Serializer/XML.php')]['messages'][0]['message'];
Expand All @@ -113,6 +113,7 @@ public function testResultCacheDeleteFile(): void
$this->assertSame('Reflection error: PhpParser\Serializer not found.', $result['files'][$fileHelper->normalizePath(__DIR__ . '/PHP-Parser/lib/PhpParser/Serializer/XML.php')]['messages'][1]['message']);
$this->assertSame('Reflection error: PhpParser\Serializer not found.', $result['files'][$fileHelper->normalizePath(__DIR__ . '/PHP-Parser/lib/PhpParser/Serializer/XML.php')]['messages'][2]['message']);
$this->assertSame('Reflection error: PhpParser\Serializer not found.', $result['files'][$fileHelper->normalizePath(__DIR__ . '/PHP-Parser/lib/PhpParser/Serializer/XML.php')]['messages'][3]['message']);
$this->assertSame('Reflection error: PhpParser\Serializer not found.', $result['files'][$fileHelper->normalizePath(__DIR__ . '/PHP-Parser/lib/PhpParser/Serializer/XML.php')]['messages'][4]['message']);

file_put_contents($serializerPath, $originalSerializerCode);
$this->runPhpstan(0);
Expand Down

0 comments on commit 3a773ac

Please sign in to comment.