Skip to content

Commit ee40918

Browse files
Merge branch '2.7' into 2.8
* 2.7: [FrameworkBundle] Fix test related to PSR-4
2 parents 74f929b + 039899d commit ee40918

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

Tests/DependencyInjection/FrameworkExtensionTest.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,13 @@ public function testValidationPaths()
362362

363363
$xmlMappings = $calls[3][1][0];
364364
$this->assertCount(2, $xmlMappings);
365-
$this->assertStringEndsWith('Component'.DIRECTORY_SEPARATOR.'Form/Resources/config/validation.xml', $xmlMappings[0]);
365+
try {
366+
// Testing symfony/symfony
367+
$this->assertStringEndsWith('Component'.DIRECTORY_SEPARATOR.'Form/Resources/config/validation.xml', $xmlMappings[0]);
368+
} catch (\Exception $e) {
369+
// Testing symfony/framework-bundle with deps=high
370+
$this->assertStringEndsWith('symfony'.DIRECTORY_SEPARATOR.'form/Resources/config/validation.xml', $xmlMappings[0]);
371+
}
366372
$this->assertStringEndsWith('TestBundle'.DIRECTORY_SEPARATOR.'Resources'.DIRECTORY_SEPARATOR.'config'.DIRECTORY_SEPARATOR.'validation.xml', $xmlMappings[1]);
367373

368374
$yamlMappings = $calls[4][1][0];

0 commit comments

Comments
 (0)