We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b594679 commit b606dd9Copy full SHA for b606dd9
Tests/DependencyInjection/Security/Factory/OAuthFactoryTest.php
@@ -41,10 +41,12 @@ public function testGetKey()
41
42
public function testCreate()
43
{
44
+ if (class_exists('Symfony\Component\DependencyInjection\ChildDefinition')) {
45
+ return $this->useChildDefinition();
46
+ }
47
+
48
if (class_exists('Symfony\Component\DependencyInjection\DefinitionDecorator')) {
49
return $this->useDefinitionDecorator();
- } elseif (class_exists('Symfony\Component\DependencyInjection\ChildDefinition')) {
- return $this->useChildDefinition();
50
}
51
52
throw new \Exception('Neither DefinitionDecorator nor ChildDefinition exist');
0 commit comments