@@ -69,7 +69,7 @@ public function testBuildingMandatoryParameter()
6969    {
7070        $ this  ->extractorDefinitionShouldBuildOn ('type ' );
7171
72-         $ spec  = $ this  ->builder ->build ('type  param ' );
72+         $ spec  = $ this  ->builder ->build ('param: type  ' );
7373
7474        $ this  ->assertInstanceOf (MandatoryParameterSpec::class, $ spec );
7575
@@ -81,7 +81,7 @@ public function testBuildingMandatoryParameterWithComplexType()
8181    {
8282        $ this  ->extractorDefinitionShouldBuildOn ('instance( Some\Class ) ' );
8383
84-         $ spec  = $ this  ->builder ->build ('instance( Some\Class ) param  ' );
84+         $ spec  = $ this  ->builder ->build ('param :  instance( Some\Class ) ' );
8585
8686        $ this  ->assertInstanceOf (MandatoryParameterSpec::class, $ spec );
8787
@@ -93,7 +93,7 @@ public function testBuildingMandatoryParameterWithVaryingType()
9393    {
9494        $ this  ->extractorDefinitionShouldBuildOn ('foo|bar ' );
9595
96-         $ spec  = $ this  ->builder ->build ('foo|bar param  ' );
96+         $ spec  = $ this  ->builder ->build ('param:  foo|bar ' );
9797
9898        $ this  ->assertInstanceOf (MandatoryParameterSpec::class, $ spec );
9999
@@ -111,7 +111,7 @@ public function testBuildingOptionalParameter(string $raw_default, $expected_def
111111    {
112112        $ this  ->extractorDefinitionShouldBuildOn ('type ' );
113113
114-         $ spec  = $ this  ->builder ->build ('type  param =  '  . $ raw_default );
114+         $ spec  = $ this  ->builder ->build ('param =  '  . $ raw_default .  ' : type '  );
115115
116116        $ this  ->assertInstanceOf (OptionalParameterSpec::class, $ spec );
117117
@@ -124,7 +124,7 @@ public function testBuildingVariadicParameter()
124124    {
125125        $ this  ->extractorDefinitionShouldBuildOn ('type ' );
126126
127-         $ spec  = $ this  ->builder ->build ('type  ...param ' );
127+         $ spec  = $ this  ->builder ->build ('...param: type  ' );
128128
129129        $ this  ->assertInstanceOf (VariadicParameterSpec::class, $ spec );
130130
@@ -138,7 +138,7 @@ public function testBuildingVariadicParameter()
138138     */ 
139139    public  function  testBuildingVariadicParameterWithDefaultValueShouldThrowException ()
140140    {
141-         $ this  ->builder ->build ('type  ...param = [] ' );
141+         $ this  ->builder ->build ('...param = []: type  ' );
142142    }
143143
144144    /** 
@@ -149,7 +149,7 @@ public function testBuildingWhenExtractorFailsShouldAlsoFail()
149149    {
150150        $ this  ->extractorDefinitionShouldThrowOn ('fail ' );
151151
152-         $ this  ->builder ->build ('fail  param ' );
152+         $ this  ->builder ->build ('param :fail  ' );
153153    }
154154
155155
0 commit comments