8000 minor #26776 [VarDumper] Skip some tests on custom xdebug.file_link_f… · symfony/symfony@beb90e8 · GitHub
[go: up one dir, main page]

Skip to content

Commit beb90e8

Browse files
minor #26776 [VarDumper] Skip some tests on custom xdebug.file_link_format (ogizanagi)
This PR was merged into the 3.4 branch. Discussion ---------- [VarDumper] Skip some tests on custom xdebug.file_link_format | Q | A | ------------- | --- | Branch? | 3.4 <!-- see below --> | Bug fix? | no | New feature? | no <!-- don't forget to update src/**/CHANGELOG.md files --> | BC breaks? | no <!-- see https://symfony.com/bc --> | Deprecations? | no <!-- don't forget to update UPGRADE-*.md and src/**/CHANGELOG.md files --> | Tests pass? | yes <!-- please add some, will be required by reviewers --> | Fixed tickets | N/A <!-- #-prefixed issue number(s), if any --> | License | MIT | Doc PR | N/A <!-- required for new features --> Those tests are failing locally if a custom `xdebug.file_link_format` value is set. Let's skip them as for `FrameworkExtensionTest::testFileLinkFormat`. This will prevent some WTF moments and any actual error on these tests will be reported by the CI (IMHO isn't worth the hassle of updating the tests to handle both cases). Commits ------- f9216ed [VarDumper] Skip some tests on custom xdebug.file_link_format
2 parents 341682e + f9216ed commit beb90e8

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

src/Symfony/Component/VarDumper/Tests/Caster/ExceptionCasterTest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,10 @@ public function testNoSrcContext()
126126

127127
public function testHtmlDump()
128128
{
129+
if (ini_get('xdebug.file_link_format') || get_cfg_var('xdebug.file_link_format')) {
130+
$this->markTestSkipped('A custom file_link_format is defined.');
131+
}
132+
129133
$e = $this->getTestException(1);
130134
ExceptionCaster::$srcContext = -1;
131135

src/Symfony/Component/VarDumper/Tests/Dumper/HtmlDumperTest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ class HtmlDumperTest extends TestCase
2222
{
2323
public function testGet()
2424
{
25+
if (ini_get('xdebug.file_link_format') || get_cfg_var('xdebug.file_link_format')) {
26+
$this->markTestSkipped('A custom file_link_format is defined.');
27+
}
28+
2529
require __DIR__.'/../Fixtures/dumb-var.php';
2630

2731
$dumper = new HtmlDumper('php://output');

0 commit comments

Comments
 (0)
0