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:
parent
4cab21d903
commit
db181bfc08
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user