Skip to content

Commit

Permalink
Test link suppression in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
weirdan committed Dec 4, 2021
1 parent 693b267 commit e1d1ef3
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions tests/ReportOutputTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -1084,6 +1084,23 @@ public function testConsoleReportWithLinks(): void
);
}

public function testConsoleReportLinksAreDisabledInCI(): void
{
$this->analyzeFileForReport();

$console_report_options = new Report\ReportOptions();
$console_report_options->show_snippet = false;
$console_report_options->use_color = true;
$console_report_options->in_ci = true;

$output = IssueBuffer::getOutput(IssueBuffer::getIssuesData(), $console_report_options);

$this->assertStringNotContainsString(
"\033]8;;file://somefile.php#L3\033\\",
$output
);
}

public function testCompactReport(): void
{
$this->analyzeFileForReport();
Expand Down

0 comments on commit e1d1ef3

Please sign in to comment.