@@ -27,10 +27,16 @@ class ArgumentTest extends TestCase
27
27
*/
28
28
public function testGetTypes ()
29
29
{
30
- $ argument = new Argument ('myArgument ' , null ,'myDefaultValue ' , true , true );
30
+ $ argument = new Argument ('myArgument ' , null , 'myDefaultValue ' , true , true );
31
31
$ this ->assertInstanceOf (Mixed_::class, $ argument ->getType ());
32
32
33
- $ argument = new Argument ('myArgument ' , new String_ (),'myDefaultValue ' , true , true );
33
+ $ argument = new Argument (
34
+ 'myArgument ' ,
35
+ new String_ (),
36
+ 'myDefaultValue ' ,
37
+ true ,
38
+ true
39
+ );
34
40
$ this ->assertEquals (new String_ (), $ argument ->getType ());
35
41
}
36
42
@@ -50,7 +56,7 @@ public function testGetName()
50
56
*/
51
57
public function testGetDefault ()
52
58
{
53
- $ argument = new Argument ('myArgument ' , null ,'myDefaultValue ' , true , true );
59
+ $ argument = new Argument ('myArgument ' , null , 'myDefaultValue ' , true , true );
54
60
$ this ->assertEquals ('myDefaultValue ' , $ argument ->getDefault ());
55
61
56
62
$ argument = new Argument ('myArgument ' , null , null , true , true );
@@ -63,7 +69,7 @@ public function testGetDefault()
63
69
*/
64
70
public function testGetWhetherArgumentIsPassedByReference ()
65
71
{
66
- $ argument = new Argument ('myArgument ' , null ,'myDefaultValue ' , true , true );
72
+ $ argument = new Argument ('myArgument ' , null , 'myDefaultValue ' , true , true );
67
73
$ this ->assertTrue ($ argument ->isByReference ());
68
74
69
75
$ argument = new Argument ('myArgument ' , null , null , false , true );
@@ -76,7 +82,7 @@ public function testGetWhetherArgumentIsPassedByReference()
76
82
*/
77
83
public function testGetWhetherArgumentisVariadic ()
78
84
{
79
- $ argument = new Argument ('myArgument ' , null ,'myDefaultValue ' , true , true );
85
+ $ argument = new Argument ('myArgument ' , null , 'myDefaultValue ' , true , true );
80
86
$ this ->assertTrue ($ argument ->isVariadic ());
81
87
82
88
$ argument = new Argument ('myArgument ' , null , 'myDefaultValue ' , true , false );
0 commit comments