Skip to content

Commit

Permalink
[ErrorHandler] Skip failing tests when "xdebug.file_link_format" opti…
Browse files Browse the repository at this point in the history
…on is defined
  • Loading branch information
lyrixx committed Mar 13, 2024
1 parent a0721fd commit 8770975
Showing 1 changed file with 5 additions and 0 deletions.
Expand Up @@ -27,6 +27,11 @@ public function testWhenNoFileLinkFormatAndNoRequest()

public function testAfterUnserialize()
{
if (get_cfg_var('xdebug.file_link_format')) {
// There is not way to override "xdebug.file_link_format" option in a test.
$this->markTestSkipped('php.ini has a custom option for "xdebug.file_link_format".');
}

$ide = $_ENV['SYMFONY_IDE'] ?? $_SERVER['SYMFONY_IDE'] ?? null;
$_ENV['SYMFONY_IDE'] = $_SERVER['SYMFONY_IDE'] = null;
$sut = unserialize(serialize(new FileLinkFormatter()));
Expand Down

0 comments on commit 8770975

Please sign in to comment.