Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitaebb659

Browse files
minor#21256 [FrameworkBundle] Skip test if xdebug.file_link_format is defined. (lyrixx)
This PR was merged into the 2.7 branch.Discussion----------[FrameworkBundle] Skip test if xdebug.file_link_format is defined.| Q | A| ------------- | ---| Branch? | 2.7| Bug fix? | no| New feature? | no| BC breaks? | no| Deprecations? | no| Tests pass? | yes| Fixed tickets | -| License | MIT| Doc PR | ----The test suite does not pass locally because I use a customfile_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 wayto define the "cfg_var". For recall, get_cfg_var allows to return theconfiguration value even if the extension is not loaded. And again it'smy case: I don't enable xdebug to have better performance.Commits-------7f15bc3 [FrameworkBundle] Skip test if xdebug.file_link_format is defined.
2 parents6430d53 +7f15bc3 commitaebb659

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

‎src/Symfony/Bundle/FrameworkBundle/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
publicfunctiontestFileLinkFormat()
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)

[8]ページ先頭

©2009-2025 Movatter.jp