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:
parent
a38c36c597
commit
e6e7462362
@ -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');
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user