@@ -26,8 +26,8 @@ class AbstractNormalizerTest extends \PHPUnit_Framework_TestCase
26
26
27
27
protected function setUp ()
28
28
{
29
- $ loader = $ this ->getMock ('Symfony\Component\Serializer\Mapping\Loader\LoaderChain ' , [], [[]] );
30
- $ this ->classMetadata = $ this ->getMock ('Symfony\Component\Serializer\Mapping\Factory\ClassMetadataFactory ' , [], [ $ loader] );
29
+ $ loader = $ this ->getMock ('Symfony\Component\Serializer\Mapping\Loader\LoaderChain ' , array (), array ( array ()) );
30
+ $ this ->classMetadata = $ this ->getMock ('Symfony\Component\Serializer\Mapping\Factory\ClassMetadataFactory ' , array (), array ( $ loader) );
31
31
$ this ->normalizer = new AbstractNormalizerDummy ($ this ->classMetadata );
32
32
}
33
33
@@ -53,11 +53,11 @@ public function testGetAllowedAttributesAsString()
53
53
54
54
$ this ->classMetadata ->method ('getMetadataFor ' )->willReturn ($ classMetadata );
55
55
56
- $ result = $ this ->normalizer ->getAllowedAttributes ('c ' , [ 'groups ' => [ 'test ' ]] , true );
57
- $ this ->assertEquals ([ 'a2 ' , 'a4 ' ] , $ result );
56
+ $ result = $ this ->normalizer ->getAllowedAttributes ('c ' , array ( 'groups ' => array ( 'test ' )) , true );
57
+ $ this ->assertEquals (array ( 'a2 ' , 'a4 ' ) , $ result );
58
58
59
- $ result = $ this ->normalizer ->getAllowedAttributes ('c ' , [ 'groups ' => [ 'other ' ]] , true );
60
- $ this ->assertEquals ([ 'a3 ' , 'a4 ' ] , $ result );
59
+ $ result = $ this ->normalizer ->getAllowedAttributes ('c ' , array ( 'groups ' => array ( 'other ' )) , true );
60
+ $ this ->assertEquals (array ( 'a3 ' , 'a4 ' ) , $ result );
61
61
}
62
62
63
63
public function testGetAllowedAttributesAsObjects ()
@@ -82,10 +82,10 @@ public function testGetAllowedAttributesAsObjects()
82
82
83
83
$ this ->classMetadata ->method ('getMetadataFor ' )->willReturn ($ classMetadata );
84
84
85
- $ result = $ this ->normalizer ->getAllowedAttributes ('c ' , [ 'groups ' => [ 'test ' ]] , false );
86
- $ this ->assertEquals ([ $ a2 , $ a4] , $ result );
85
+ $ result = $ this ->normalizer ->getAllowedAttributes ('c ' , array ( 'groups ' => array ( 'test ' )) , false );
86
+ $ this ->assertEquals (array ( $ a2 , $ a4) , $ result );
87
87
88
- $ result = $ this ->normalizer ->getAllowedAttributes ('c ' , [ 'groups ' => [ 'other ' ]] , false );
89
- $ this ->assertEquals ([ $ a3 , $ a4] , $ result );
88
+ $ result = $ this ->normalizer ->getAllowedAttributes ('c ' , array ( 'groups ' => array ( 'other ' )) , false );
89
+ $ this ->assertEquals (array ( $ a3 , $ a4) , $ result );
90
90
}
91
91
}
0 commit comments