2222use phpDocumentor \Reflection \Types \Integer ;
2323use phpDocumentor \Reflection \Types \Object_ ;
2424use phpDocumentor \Reflection \Types \String_ ;
25- use phpDocumentor \Reflection \Types \Void ;
25+ use phpDocumentor \Reflection \Types \Void_ ;
2626
2727/**
2828 * @coversDefaultClass \phpDocumentor\Reflection\DocBlock\Tags\Method
@@ -56,7 +56,7 @@ public function testIfTagCanBeRenderedUsingDefaultFormatter()
5656 ['name ' => 'argument1 ' , 'type ' => new String_ ()],
5757 ['name ' => 'argument2 ' , 'type ' => new Object_ ()]
5858 ];
59- $ fixture = new Method ('myMethod ' , $ arguments , new Void (), true , new Description ('My Description ' ));
59+ $ fixture = new Method ('myMethod ' , $ arguments , new Void_ (), true , new Description ('My Description ' ));
6060
6161 $ this ->assertSame (
6262 '@method static void myMethod(string $argument1, object $argument2) My Description ' ,
@@ -115,7 +115,7 @@ public function testArgumentsMayBePassedAsString()
115115 {
116116 $ arguments = ['argument1 ' ];
117117 $ expected = [
118- [ 'name ' => $ arguments [0 ], 'type ' => new Void () ]
118+ [ 'name ' => $ arguments [0 ], 'type ' => new Void_ () ]
119119 ];
120120
121121 $ fixture = new Method ('myMethod ' , $ arguments );
@@ -131,7 +131,7 @@ public function testArgumentTypeCanBeInferredAsVoid()
131131 {
132132 $ arguments = [ [ 'name ' => 'argument1 ' ] ];
133133 $ expected = [
134- [ 'name ' => $ arguments [0 ]['name ' ], 'type ' => new Void () ]
134+ [ 'name ' => $ arguments [0 ]['name ' ], 'type ' => new Void_ () ]
135135 ];
136136
137137 $ fixture = new Method ('myMethod ' , $ arguments );
@@ -160,7 +160,7 @@ public function testReturnTypeCanBeInferredAsVoid()
160160 {
161161 $ fixture = new Method ('myMethod ' , []);
162162
163- $ this ->assertEquals (new Void (), $ fixture ->getReturnType ());
163+ $ this ->assertEquals (new Void_ (), $ fixture ->getReturnType ());
164164 }
165165
166166 /**
@@ -204,7 +204,7 @@ public function testStringRepresentationIsReturned()
204204 ['name ' => 'argument1 ' , 'type ' => new String_ ()],
205205 ['name ' => 'argument2 ' , 'type ' => new Object_ ()]
206206 ];
207- $ fixture = new Method ('myMethod ' , $ arguments , new Void (), true , new Description ('My Description ' ));
207+ $ fixture = new Method ('myMethod ' , $ arguments , new Void_ (), true , new Description ('My Description ' ));
208208
209209 $ this ->assertSame (
210210 'static void myMethod(string $argument1, object $argument2) My Description ' ,
@@ -230,7 +230,7 @@ public function testFactoryMethod()
230230 $ description = new Description ('My Description ' );
231231 $ expectedArguments = [
232232 [ 'name ' => 'argument1 ' , 'type ' => new String_ () ],
233- [ 'name ' => 'argument2 ' , 'type ' => new Void () ]
233+ [ 'name ' => 'argument2 ' , 'type ' => new Void_ () ]
234234 ];
235235
236236 $ descriptionFactory ->shouldReceive ('create ' )->with ('My Description ' , $ context )->andReturn ($ description );
@@ -245,7 +245,7 @@ public function testFactoryMethod()
245245 $ this ->assertSame ('static void myMethod(string $argument1, void $argument2) My Description ' , (string )$ fixture );
246246 $ this ->assertSame ('myMethod ' , $ fixture ->getMethodName ());
247247 $ this ->assertEquals ($ expectedArguments , $ fixture ->getArguments ());
248- $ this ->assertInstanceOf (Void ::class, $ fixture ->getReturnType ());
248+ $ this ->assertInstanceOf (Void_ ::class, $ fixture ->getReturnType ());
249249 $ this ->assertSame ($ description , $ fixture ->getDescription ());
250250 }
251251
@@ -404,7 +404,7 @@ public function testCreateMethodParenthesisMissing()
404404 $ this ->assertSame ('static void myMethod() My Description ' , (string )$ fixture );
405405 $ this ->assertSame ('myMethod ' , $ fixture ->getMethodName ());
406406 $ this ->assertEquals ([], $ fixture ->getArguments ());
407- $ this ->assertInstanceOf (Void ::class, $ fixture ->getReturnType ());
407+ $ this ->assertInstanceOf (Void_ ::class, $ fixture ->getReturnType ());
408408 $ this ->assertSame ($ description , $ fixture ->getDescription ());
409409 }
410410}
0 commit comments