Skip to content

Commit

Permalink
[FrameworkBundle] Fix test related to PSR-4
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolas-grekas committed Apr 24, 2015
1 parent 0cbe1e0 commit 4cc4f07
Showing 1 changed file with 7 additions and 1 deletion.
Expand Up @@ -362,7 +362,13 @@ public function testValidationPaths()

$xmlMappings = $calls[3][1][0];
$this->assertCount(2, $xmlMappings);
$this->assertStringEndsWith('Component'.DIRECTORY_SEPARATOR.'Form/Resources/config/validation.xml', $xmlMappings[0]);
try {
// Testing symfony/symfony
$this->assertStringEndsWith('Component'.DIRECTORY_SEPARATOR.'Form/Resources/config/validation.xml', $xmlMappings[0]);
} catch (\Exception $e) {
// Testing symfony/framework-bundle with deps=high
$this->assertStringEndsWith('symfony'.DIRECTORY_SEPARATOR.'form/Resources/config/validation.xml', $xmlMappings[0]);
}
$this->assertStringEndsWith('TestBundle'.DIRECTORY_SEPARATOR.'Resources'.DIRECTORY_SEPARATOR.'config'.DIRECTORY_SEPARATOR.'validation.xml', $xmlMappings[1]);

$yamlMappings = $calls[4][1][0];
Expand Down

0 comments on commit 4cc4f07

Please sign in to comment.