Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8c89a3a

Browse files
committed
minor #18532 [DependencyInjection] Remove check for YAML class in CrossCheckTest (JhonnyL)
This PR was merged into the 2.3 branch. Discussion ---------- [DependencyInjection] Remove check for YAML class in CrossCheckTest | Q | A | ------------- | --- | Branch? | 2.3 | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | | License | MIT | Doc PR | I suppose it's a leftover from when YAML component only was added in suggest. Commits ------- af92275 [DependencyInjection] Remove YAML check in CrossCheckTest
2 parents 03aa64a + af92275 commit 8c89a3a

File tree

1 file changed

+6
-13
lines changed

1 file changed

+6
-13
lines changed

src/Symfony/Component/DependencyInjection/Tests/CrossCheckTest.php

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -73,24 +73,17 @@ public function testCrossCheck($fixture, $type)
7373

7474
public function crossCheckLoadersDumpers()
7575
{
76-
$tests = array(
76+
return array(
7777
array('services1.xml', 'xml'),
7878
array('services2.xml', 'xml'),
7979
array('services6.xml', 'xml'),
8080
array('services8.xml', 'xml'),
8181
array('services9.xml', 'xml'),
82+
array('services1.yml', 'yaml'),
83+
array('services2.yml', 'yaml'),
84+
array('services6.yml', 'yaml'),
85+
array('services8.yml', 'yaml'),
86+
array('services9.yml', 'yaml'),
8287
);
83-
84-
if (class_exists('Symfony\Component\Yaml\Yaml')) {
85-
$tests = array_merge($tests, array(
86-
array('services1.yml', 'yaml'),
87-
array('services2.yml', 'yaml'),
88-
array('services6.yml', 'yaml'),
89-
array('services8.yml', 'yaml'),
90-
array('services9.yml', 'yaml'),
91-
));
92-
}
93-
94-
return $tests;
9588
}
9689
}

0 commit comments

Comments
 (0)