Skip to content

Commit 820cc07

Browse files
minor #54278 [ErrorHandler] Skip failing tests when "xdebug.file_link_format" option is defined (lyrixx)
This PR was submitted for the 7.1 branch but it was merged into the 6.4 branch instead. Discussion ---------- [ErrorHandler] Skip failing tests when "xdebug.file_link_format" option is defined | Q | A | ------------- | --- | Branch? | 6.4 | Bug fix? | no | New feature? | no | Deprecations? | no | Issues | | License | MIT This test annoys me since ... many years! So let's skip it. Commits ------- 05ad85d229 [ErrorHandler] Skip failing tests when "xdebug.file_link_format" option is defined
2 parents e388573 + ce64ec6 commit 820cc07

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

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 no 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)