|
15 | 15 |
|
16 | 16 | use Mockery as m;
|
17 | 17 | use phpDocumentor\Reflection\Types\Array_;
|
18 |
| -use phpDocumentor\Reflection\Types\Expression_; |
19 | 18 | use phpDocumentor\Reflection\Types\Boolean;
|
20 | 19 | use phpDocumentor\Reflection\Types\ClassString;
|
21 | 20 | use phpDocumentor\Reflection\Types\Compound;
|
22 | 21 | use phpDocumentor\Reflection\Types\Context;
|
| 22 | +use phpDocumentor\Reflection\Types\Expression_; |
23 | 23 | use phpDocumentor\Reflection\Types\Iterable_;
|
24 | 24 | use phpDocumentor\Reflection\Types\Null_;
|
25 | 25 | use phpDocumentor\Reflection\Types\Nullable;
|
@@ -269,10 +269,16 @@ public function testResolvingAmpersandCompoundTypes() : void
|
269 | 269 | {
|
270 | 270 | $fixture = new TypeResolver();
|
271 | 271 |
|
272 |
| - $resolvedType = $fixture->resolve('Reflection\DocBlock&\PHPUnit\Framework\MockObject\MockObject ', new Context('phpDocumentor')); |
| 272 | + $resolvedType = $fixture->resolve( |
| 273 | + 'Reflection\DocBlock&\PHPUnit\Framework\MockObject\MockObject ', |
| 274 | + new Context('phpDocumentor') |
| 275 | + ); |
273 | 276 |
|
274 | 277 | $this->assertInstanceOf(Compound::class, $resolvedType);
|
275 |
| - $this->assertSame('\phpDocumentor\Reflection\DocBlock&\PHPUnit\Framework\MockObject\MockObject', (string) $resolvedType); |
| 278 | + $this->assertSame( |
| 279 | + '\phpDocumentor\Reflection\DocBlock&\PHPUnit\Framework\MockObject\MockObject', |
| 280 | + (string) $resolvedType |
| 281 | + ); |
276 | 282 |
|
277 | 283 | $firstType = $resolvedType->get(0);
|
278 | 284 |
|
@@ -300,17 +306,26 @@ public function testResolvingMixedCompoundTypes() : void
|
300 | 306 | {
|
301 | 307 | $fixture = new TypeResolver();
|
302 | 308 |
|
303 |
| - $resolvedType = $fixture->resolve('(Reflection\DocBlock&\PHPUnit\Framework\MockObject\MockObject)|null', new Context('phpDocumentor')); |
| 309 | + $resolvedType = $fixture->resolve( |
| 310 | + '(Reflection\DocBlock&\PHPUnit\Framework\MockObject\MockObject)|null', |
| 311 | + new Context('phpDocumentor') |
| 312 | + ); |
304 | 313 |
|
305 | 314 | $this->assertInstanceOf(Compound::class, $resolvedType);
|
306 |
| - $this->assertSame('(\phpDocumentor\Reflection\DocBlock&\PHPUnit\Framework\MockObject\MockObject)|null', (string) $resolvedType); |
| 315 | + $this->assertSame( |
| 316 | + '(\phpDocumentor\Reflection\DocBlock&\PHPUnit\Framework\MockObject\MockObject)|null', |
| 317 | + (string) $resolvedType |
| 318 | + ); |
307 | 319 |
|
308 | 320 | $firstType = $resolvedType->get(0);
|
309 | 321 |
|
310 | 322 | $secondType = $resolvedType->get(1);
|
311 | 323 |
|
312 | 324 | $this->assertInstanceOf(Expression_::class, $firstType);
|
313 |
| - $this->assertSame('(\phpDocumentor\Reflection\DocBlock&\PHPUnit\Framework\MockObject\MockObject)', (string) $firstType); |
| 325 | + $this->assertSame( |
| 326 | + '(\phpDocumentor\Reflection\DocBlock&\PHPUnit\Framework\MockObject\MockObject)', |
| 327 | + (string) $firstType |
| 328 | + ); |
314 | 329 | $this->assertInstanceOf(Null_::class, $secondType);
|
315 | 330 |
|
316 | 331 | $resolvedType = $firstType->getValueType();
|
|
0 commit comments