@@ -53,7 +53,7 @@ class FOSRestExtensionTest extends \PHPUnit_Framework_TestCase
5353 public function setUp ()
5454 {
5555 $ this ->container = new ContainerBuilder ();
56- $ this ->container ->setParameter ('kernel.bundles ' , [ 'JMSSerializerBundle ' => true ] );
56+ $ this ->container ->setParameter ('kernel.bundles ' , array ( 'JMSSerializerBundle ' => true ) );
5757 $ this ->container ->setParameter ('kernel.debug ' , false );
5858 $ this ->extension = new FOSRestExtension ();
5959 $ this ->includeFormat = true ;
@@ -551,11 +551,11 @@ public function testExceptionDebug($kernelDebug, $exceptionConfig, $expectedValu
551551 $ this ->container ->setParameter ('kernel.debug ' , $ kernelDebug );
552552 $ extension = new FOSRestExtension ();
553553
554- $ extension ->load ([
555- 'fos_rest ' => [
554+ $ extension ->load (array (
555+ 'fos_rest ' => array (
556556 'exception ' => $ exceptionConfig ,
557- ] ,
558- ] , $ this ->container );
557+ ) ,
558+ ) , $ this ->container );
559559
560560 $ definition = $ this ->container ->getDefinition ('fos_rest.exception.controller ' );
561561 $ this ->assertSame ($ expectedValue , $ definition ->getArgument (2 ));
@@ -569,38 +569,38 @@ public function testExceptionDebug($kernelDebug, $exceptionConfig, $expectedValu
569569
570570 public static function getShowExceptionData ()
571571 {
572- return [
573- 'empty config, kernel.debug is true ' => [
572+ return array (
573+ 'empty config, kernel.debug is true ' => array (
574574 true ,
575- [] ,
575+ array () ,
576576 true ,
577- ] ,
578- 'empty config, kernel.debug is false ' => [
577+ ) ,
578+ 'empty config, kernel.debug is false ' => array (
579579 false ,
580- [] ,
580+ array () ,
581581 false ,
582- ] ,
583- 'config debug true ' => [
582+ ) ,
583+ 'config debug true ' => array (
584584 false ,
585- [ 'debug ' => true ] ,
585+ array ( 'debug ' => true ) ,
586586 true ,
587- ] ,
588- 'config debug false ' => [
587+ ) ,
588+ 'config debug false ' => array (
589589 true ,
590- [ 'debug ' => false ] ,
590+ array ( 'debug ' => false ) ,
591591 false ,
592- ] ,
593- 'config debug null, kernel.debug true ' => [
592+ ) ,
593+ 'config debug null, kernel.debug true ' => array (
594594 false ,
595- [ 'debug ' => null ] ,
595+ array ( 'debug ' => null ) ,
596596 true ,
597- ] ,
598- 'config debug null, kernel.debug false ' => [
597+ ) ,
598+ 'config debug null, kernel.debug false ' => array (
599599 false ,
600- [ 'debug ' => null ] ,
600+ array ( 'debug ' => null ) ,
601601 true ,
602- ] ,
603- ] ;
602+ ) ,
603+ ) ;
604604 }
605605
606606 /**
@@ -698,14 +698,14 @@ public function testZoneMatcherListener()
698698 $ this ->assertEquals ('addRequestMatcher ' , $ addRequestMatcherCalls [0 ][0 ]);
699699 $ requestMatcherFirstId = (string ) $ addRequestMatcherCalls [0 ][1 ][0 ];
700700 $ requestMatcherFirst = $ this ->container ->getDefinition ($ requestMatcherFirstId );
701- $ this ->assertInstanceOf (DefinitionDecorator::class , $ requestMatcherFirst );
701+ $ this ->assertInstanceOf (' Symfony\Component\DependencyInjection\ DefinitionDecorator' , $ requestMatcherFirst );
702702 $ this ->assertEquals ('/api/* ' , $ requestMatcherFirst ->getArgument (0 ));
703703
704704 // Second zone
705705 $ this ->assertEquals ('addRequestMatcher ' , $ addRequestMatcherCalls [1 ][0 ]);
706706 $ requestMatcherSecondId = (string ) $ addRequestMatcherCalls [1 ][1 ][0 ];
707707 $ requestMatcherSecond = $ this ->container ->getDefinition ($ requestMatcherSecondId );
708- $ this ->assertInstanceOf (DefinitionDecorator::class , $ requestMatcherSecond );
708+ $ this ->assertInstanceOf (' Symfony\Component\DependencyInjection\ DefinitionDecorator' , $ requestMatcherSecond );
709709 $ this ->assertEquals ('/^second ' , $ requestMatcherSecond ->getArgument (0 ));
710710 $ this ->assertEquals (array ('127.0.0.1 ' ), $ requestMatcherSecond ->getArgument (3 ));
711711 }
0 commit comments