22
22
use phpDocumentor \Reflection \Types \Integer ;
23
23
use phpDocumentor \Reflection \Types \Object_ ;
24
24
use phpDocumentor \Reflection \Types \String_ ;
25
- use phpDocumentor \Reflection \Types \Void ;
25
+ use phpDocumentor \Reflection \Types \Void_ ;
26
26
27
27
/**
28
28
* @coversDefaultClass \phpDocumentor\Reflection\DocBlock\Tags\Method
@@ -56,7 +56,7 @@ public function testIfTagCanBeRenderedUsingDefaultFormatter()
56
56
['name ' => 'argument1 ' , 'type ' => new String_ ()],
57
57
['name ' => 'argument2 ' , 'type ' => new Object_ ()]
58
58
];
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 ' ));
60
60
61
61
$ this ->assertSame (
62
62
'@method static void myMethod(string $argument1, object $argument2) My Description ' ,
@@ -115,7 +115,7 @@ public function testArgumentsMayBePassedAsString()
115
115
{
116
116
$ arguments = ['argument1 ' ];
117
117
$ expected = [
118
- [ 'name ' => $ arguments [0 ], 'type ' => new Void () ]
118
+ [ 'name ' => $ arguments [0 ], 'type ' => new Void_ () ]
119
119
];
120
120
121
121
$ fixture = new Method ('myMethod ' , $ arguments );
@@ -131,7 +131,7 @@ public function testArgumentTypeCanBeInferredAsVoid()
131
131
{
132
132
$ arguments = [ [ 'name ' => 'argument1 ' ] ];
133
133
$ expected = [
134
- [ 'name ' => $ arguments [0 ]['name ' ], 'type ' => new Void () ]
134
+ [ 'name ' => $ arguments [0 ]['name ' ], 'type ' => new Void_ () ]
135
135
];
136
136
137
137
$ fixture = new Method ('myMethod ' , $ arguments );
@@ -160,7 +160,7 @@ public function testReturnTypeCanBeInferredAsVoid()
160
160
{
161
161
$ fixture = new Method ('myMethod ' , []);
162
162
163
- $ this ->assertEquals (new Void (), $ fixture ->getReturnType ());
163
+ $ this ->assertEquals (new Void_ (), $ fixture ->getReturnType ());
164
164
}
165
165
166
166
/**
@@ -204,7 +204,7 @@ public function testStringRepresentationIsReturned()
204
204
['name ' => 'argument1 ' , 'type ' => new String_ ()],
205
205
['name ' => 'argument2 ' , 'type ' => new Object_ ()]
206
206
];
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 ' ));
208
208
209
209
$ this ->assertSame (
210
210
'static void myMethod(string $argument1, object $argument2) My Description ' ,
@@ -230,7 +230,7 @@ public function testFactoryMethod()
230
230
$ description = new Description ('My Description ' );
231
231
$ expectedArguments = [
232
232
[ 'name ' => 'argument1 ' , 'type ' => new String_ () ],
233
- [ 'name ' => 'argument2 ' , 'type ' => new Void () ]
233
+ [ 'name ' => 'argument2 ' , 'type ' => new Void_ () ]
234
234
];
235
235
236
236
$ descriptionFactory ->shouldReceive ('create ' )->with ('My Description ' , $ context )->andReturn ($ description );
@@ -245,7 +245,7 @@ public function testFactoryMethod()
245
245
$ this ->assertSame ('static void myMethod(string $argument1, void $argument2) My Description ' , (string )$ fixture );
246
246
$ this ->assertSame ('myMethod ' , $ fixture ->getMethodName ());
247
247
$ this ->assertEquals ($ expectedArguments , $ fixture ->getArguments ());
248
- $ this ->assertInstanceOf (Void ::class, $ fixture ->getReturnType ());
248
+ $ this ->assertInstanceOf (Void_ ::class, $ fixture ->getReturnType ());
249
249
$ this ->assertSame ($ description , $ fixture ->getDescription ());
250
250
}
251
251
@@ -404,7 +404,7 @@ public function testCreateMethodParenthesisMissing()
404
404
$ this ->assertSame ('static void myMethod() My Description ' , (string )$ fixture );
405
405
$ this ->assertSame ('myMethod ' , $ fixture ->getMethodName ());
406
406
$ this ->assertEquals ([], $ fixture ->getArguments ());
407
- $ this ->assertInstanceOf (Void ::class, $ fixture ->getReturnType ());
407
+ $ this ->assertInstanceOf (Void_ ::class, $ fixture ->getReturnType ());
408
408
$ this ->assertSame ($ description , $ fixture ->getDescription ());
409
409
}
410
410
}
0 commit comments