diff --git a/src/Symfony/Component/ErrorHandler/Tests/ErrorRenderer/FileLinkFormatterTest.php b/src/Symfony/Component/ErrorHandler/Tests/ErrorRenderer/FileLinkFormatterTest.php index a5f6330679ff9..807ee729fc5d8 100644 --- a/src/Symfony/Component/ErrorHandler/Tests/ErrorRenderer/FileLinkFormatterTest.php +++ b/src/Symfony/Component/ErrorHandler/Tests/ErrorRenderer/FileLinkFormatterTest.php @@ -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()));