@@ -28,7 +28,7 @@ protected function setUp()
28
28
29
29
public function testSignature1 ()
30
30
{
31
- $ arguments = $ this ->factory ->createArgumentMetadata ([ $ this , 'signature1 ' ] );
31
+ $ arguments = $ this ->factory ->createArgumentMetadata (array ( $ this , 'signature1 ' ) );
32
32
33
33
$ this ->assertEquals (array (
34
34
new ArgumentMetadata ('foo ' , self ::class, false , false , null ),
@@ -39,7 +39,7 @@ public function testSignature1()
39
39
40
40
public function testSignature2 ()
41
41
{
42
- $ arguments = $ this ->factory ->createArgumentMetadata ([ $ this , 'signature2 ' ] );
42
+ $ arguments = $ this ->factory ->createArgumentMetadata (array ( $ this , 'signature2 ' ) );
43
43
44
44
$ this ->assertEquals (array (
45
45
new ArgumentMetadata ('foo ' , self ::class, false , true , null ),
@@ -50,7 +50,7 @@ public function testSignature2()
50
50
51
51
public function testSignature3 ()
52
52
{
53
- $ arguments = $ this ->factory ->createArgumentMetadata ([ $ this , 'signature3 ' ] );
53
+ $ arguments = $ this ->factory ->createArgumentMetadata (array ( $ this , 'signature3 ' ) );
54
54
55
55
$ this ->assertEquals (array (
56
56
new ArgumentMetadata ('bar ' , __NAMESPACE__ .'\FakeClassThatDoesNotExist ' , false , false , null ),
@@ -60,18 +60,18 @@ public function testSignature3()
60
60
61
61
public function testSignature4 ()
62
62
{
63
- $ arguments = $ this ->factory ->createArgumentMetadata ([ $ this , 'signature4 ' ] );
63
+ $ arguments = $ this ->factory ->createArgumentMetadata (array ( $ this , 'signature4 ' ) );
64
64
65
65
$ this ->assertEquals (array (
66
66
new ArgumentMetadata ('foo ' , null , false , true , 'default ' ),
67
67
new ArgumentMetadata ('bar ' , null , false , true , 500 ),
68
- new ArgumentMetadata ('baz ' , null , false , true , [] ),
68
+ new ArgumentMetadata ('baz ' , null , false , true , array () ),
69
69
), $ arguments );
70
70
}
71
71
72
72
public function testSignature5 ()
73
73
{
74
- $ arguments = $ this ->factory ->createArgumentMetadata ([ $ this , 'signature5 ' ] );
74
+ $ arguments = $ this ->factory ->createArgumentMetadata (array ( $ this , 'signature5 ' ) );
75
75
76
76
$ this ->assertEquals (array (
77
77
new ArgumentMetadata ('foo ' , 'array ' , false , true , null ),
@@ -84,7 +84,7 @@ public function testSignature5()
84
84
*/
85
85
public function testVariadicSignature ()
86
86
{
87
- $ arguments = $ this ->factory ->createArgumentMetadata ([ new VariadicController (), 'action ' ] );
87
+ $ arguments = $ this ->factory ->createArgumentMetadata (array ( new VariadicController (), 'action ' ) );
88
88
89
89
$ this ->assertEquals (array (
90
90
new ArgumentMetadata ('foo ' , null , false , false , null ),
@@ -97,7 +97,7 @@ public function testVariadicSignature()
97
97
*/
98
98
public function testBasicTypesSignature ()
99
99
{
100
- $ arguments = $ this ->factory ->createArgumentMetadata ([ new BasicTypesController (), 'action ' ] );
100
+ $ arguments = $ this ->factory ->createArgumentMetadata (array ( new BasicTypesController (), 'action ' ) );
101
101
102
102
$ this ->assertEquals (array (
103
103
new ArgumentMetadata ('foo ' , 'string ' , false , false , null ),
@@ -108,26 +108,21 @@ public function testBasicTypesSignature()
108
108
109
109
private function signature1 (ArgumentMetadataFactoryTest $ foo , array $ bar , callable $ baz )
110
110
{
111
-
112
111
}
113
112
114
113
private function signature2 (ArgumentMetadataFactoryTest $ foo = null , FakeClassThatDoesNotExist $ bar = null , ImportedAndFake $ baz = null )
115
114
{
116
-
117
115
}
118
116
119
117
private function signature3 (FakeClassThatDoesNotExist $ bar , ImportedAndFake $ baz )
120
118
{
121
-
122
119
}
123
120
124
- private function signature4 ($ foo = 'default ' , $ bar = 500 , $ baz = [] )
121
+ private function signature4 ($ foo = 'default ' , $ bar = 500 , $ baz = array () )
125
122
{
126
-
127
123
}
128
124
129
125
private function signature5 (array $ foo = null , $ bar )
130
126
{
131
-
132
127
}
133
128
}
0 commit comments