Skip to content

Commit f6cca85

Browse files
committed
Fix
1 parent b31b9d8 commit f6cca85

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

tests/e2e/ResultCacheEndToEndTest.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,13 +104,16 @@ public function testResultCacheDeleteFile(): void
104104
$fileHelper = new FileHelper(__DIR__);
105105

106106
$result = $this->runPhpstan(1);
107-
$this->assertSame(2, $result['totals']['file_errors'], Json::encode($result));
107+
$this->assertSame(5, $result['totals']['file_errors'], Json::encode($result));
108108
$this->assertSame(0, $result['totals']['errors'], Json::encode($result));
109109

110110
$message = $result['files'][$fileHelper->normalizePath(__DIR__ . '/PHP-Parser/lib/PhpParser/Serializer/XML.php')]['messages'][0]['message'];
111111
$this->assertStringContainsString('Ignored error pattern #^Argument of an invalid type PhpParser\\\\Node supplied for foreach, only iterables are supported\\.$# in path', $message);
112112
$this->assertStringContainsString('was not matched in reported errors.', $message);
113113
$this->assertSame('Reflection error: PhpParser\Serializer not found.', $result['files'][$fileHelper->normalizePath(__DIR__ . '/PHP-Parser/lib/PhpParser/Serializer/XML.php')]['messages'][1]['message']);
114+
$this->assertSame('Reflection error: PhpParser\Serializer not found.', $result['files'][$fileHelper->normalizePath(__DIR__ . '/PHP-Parser/lib/PhpParser/Serializer/XML.php')]['messages'][2]['message']);
115+
$this->assertSame('Reflection error: PhpParser\Serializer not found.', $result['files'][$fileHelper->normalizePath(__DIR__ . '/PHP-Parser/lib/PhpParser/Serializer/XML.php')]['messages'][3]['message']);
116+
$this->assertSame('Reflection error: PhpParser\Serializer not found.', $result['files'][$fileHelper->normalizePath(__DIR__ . '/PHP-Parser/lib/PhpParser/Serializer/XML.php')]['messages'][4]['message']);
114117

115118
file_put_contents($serializerPath, $originalSerializerCode);
116119
$this->runPhpstan(0);

0 commit comments

Comments
 (0)