Skip to content

Commit 44ee317

Browse files
committed
[FrameworkBundle] Skip test if xdebug.file_link_format is defined.
The test suite does not pass locally because I use a custom file_link_format. I do it because it works everywhere. Then, Symfony tries to read this value before the default one. We could use ini_set before the test but unfortunatelly there are no way to define the "cfg_var". For recall, get_cfg_var allows to return the configuration value even if the extension is not loaded. And again it's my case: I don't enable xdebug to have better performance.
1 parent 62bbde7 commit 44ee317

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Tests/DependencyInjection/FrameworkExtensionTest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -318,6 +318,10 @@ public function testAnnotations()
318318

319319
public function testFileLinkFormat()
320320
{
321+
if (ini_get('xdebug.file_link_format') || get_cfg_var('xdebug.file_link_format')) {
322+
$this->markTestSkipped('A custom file_link_format is defined.');
323+
}
324+
321325
$container = $this->createContainerFromFile('full');
322326

323327
$this->assertEquals('file%link%format', $container->getParameter('templating.helper.code.file_link_format'));

0 commit comments

Comments
 (0)