Skip to content

Commit

Permalink
minor #54278 [ErrorHandler] Skip failing tests when "xdebug.file_link…
Browse files Browse the repository at this point in the history
…_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
-------

05ad85d [ErrorHandler] Skip failing tests when "xdebug.file_link_format" option is defined
  • Loading branch information
nicolas-grekas committed Mar 13, 2024
2 parents e17b65c + 05ad85d commit c5fafaa
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 no 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 c5fafaa

Please sign in to comment.