1
0
mirror of https://github.com/danog/psalm.git synced 2025-01-21 21:31:13 +01:00

Add a test that validate code change (before modification fail / after modification work)

This commit is contained in:
MacFJA 2017-09-27 00:33:55 +02:00 committed by Matthew Brown
parent a38c36c597
commit e6e7462362

View File

@ -213,5 +213,11 @@ somefile.php:2:43:error - Could not verify return type \'string|null\' for psalm
',
IssueBuffer::getOutput(ProjectChecker::TYPE_XML, false)
);
IssueBuffer::finish($this->project_checker, true, null, ['somefile.php']);
$this->assertFileExists(__DIR__ . '/test-report.json');
$this->assertSame('[]
', file_get_contents(__DIR__ . '/test-report.json'));
unlink(__DIR__ . '/test-report.json');
}
}