8000 [ErrorHandler] Skip failing tests when "xdebug.file_link_format" opti… · symfony/symfony@05ad85d · GitHub
[go: up one dir, main page]

Skip to content

Commit 05ad85d

Browse files
lyrixxnicolas-grekas
authored andcommitted
[ErrorHandler] Skip failing tests when "xdebug.file_link_format" option is defined
1 parent e17b65c commit 05ad85d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/Symfony/Component/ErrorHandler/Tests/ErrorRenderer/FileLinkFormatterTest.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,11 @@ public function testWhenNoFileLinkFormatAndNoRequest()
2727

2828
public function testAfterUnserialize()
2929
{
30+
if (get_cfg_var('xdebug.file_link_format')) {
31+
// There is not way to override "xdebug.file_link_format" option in a test.
32+
$this->markTestSkipped('php.ini has a custom option for "xdebug.file_link_format".');
33+
}
34+
3035
$ide = $_ENV['SYMFONY_IDE'] ?? $_SERVER['SYMFONY_IDE'] ?? null;
3136
$_ENV['SYMFONY_IDE'] = $_SERVER['SYMFONY_IDE'] = null;
3237
$sut = unserialize(serialize(new FileLinkFormatter()));

0 commit comments

Comments
 (0)
0