1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-30 04:39:00 +01:00

Test links output

This commit is contained in:
Bruce Weirdan 2021-11-14 23:07:00 +02:00
parent 4cab21d903
commit db181bfc08
No known key found for this signature in database
GPG Key ID: CFC3AAB181751B0D

View File

@ -1068,6 +1068,22 @@ INFO: PossiblyUndefinedGlobalVariable - somefile.php:17:6 - Possibly undefined g
);
}
public function testConsoleReportWithLinks(): void
{
$this->analyzeFileForReport();
$console_report_options = new Report\ReportOptions();
$console_report_options->show_snippet = false;
$console_report_options->use_color = true;
$output = IssueBuffer::getOutput(IssueBuffer::getIssuesData(), $console_report_options);
$this->assertStringContainsString(
"\033]8;;file://somefile.php#L3\033\\somefile.php:3:10\033]8;;\033\\",
$output
);
}
public function testCompactReport(): void
{
$this->analyzeFileForReport();