Skip to content

Commit

Permalink
Merge pull request #8381 from paulbalandan/xdebug-cli-color
Browse files Browse the repository at this point in the history
test: strip colors on `xdebug.cli_color=2`
  • Loading branch information
kenjis authored Dec 28, 2023
2 parents b2534a1 + a1ae4a2 commit aba1c97
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/system/Commands/Utilities/ConfigCheckTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,13 @@ public function testGetVarDump()
true
)
) {
// Xdebug force adds colors on xdebug.cli_color=2
$output = preg_replace(
'/(\033\[[0-9;]+m)|(\035\[[0-9;]+m)/u',
'',
$output
);

// Xdebug overloads var_dump().
$this->assertStringContainsString(
'class Config\App#',
Expand Down

0 comments on commit aba1c97

Please sign in to comment.