@@ -290,7 +290,9 @@ public function testFactoryMethod() : void
290
290
['name ' => 'argument2 ' , 'type ' => new Mixed_ ()],
291
291
];
292
292
293
- $ descriptionFactory ->shouldReceive ('create ' )->with ('My Description ' , $ context )->andReturn ($ description );
293
+ $ descriptionFactory ->shouldReceive ('create ' )
294
+ ->with ('My Description ' , $ context )
295
+ ->andReturn ($ description );
294
296
295
297
$ fixture = Method::create (
296
298
'static void myMethod(string $argument1, $argument2) My Description ' ,
@@ -299,7 +301,10 @@ public function testFactoryMethod() : void
299
301
$ context
300
302
);
301
303
302
- $ this ->assertSame ('static void myMethod(string $argument1, mixed $argument2) My Description ' , (string ) $ fixture );
304
+ $ this ->assertSame (
305
+ 'static void myMethod(string $argument1, mixed $argument2) My Description ' ,
306
+ (string ) $ fixture
307
+ );
303
308
$ this ->assertSame ('myMethod ' , $ fixture ->getMethodName ());
304
309
$ this ->assertEquals ($ expectedArguments , $ fixture ->getArguments ());
305
310
$ this ->assertInstanceOf (Void_::class, $ fixture ->getReturnType ());
@@ -371,7 +376,9 @@ public function testCollectionReturnTypes(
371
376
) : void {
372
377
$ resolver = new TypeResolver ();
373
378
$ descriptionFactory = m::mock (DescriptionFactory::class);
374
- $ descriptionFactory ->shouldReceive ('create ' )->with ('' , null )->andReturn (new Description ('' ));
379
+ $ descriptionFactory ->shouldReceive ('create ' )
380
+ ->with ('' , null )
381
+ ->andReturn (new Description ('' ));
375
382
376
383
$ fixture = Method::create ("$ {returnType} myMethod( \$arg) " , $ resolver , $ descriptionFactory );
377
384
$ returnType = $ fixture ->getReturnType ();
@@ -457,7 +464,10 @@ public function testCreateMethodParenthesisMissing() : void
457
464
458
465
$ description = new Description ('My Description ' );
459
466
460
- $ descriptionFactory ->shouldReceive ('create ' )->with ('My Description ' , $ context )->andReturn ($ description );
467
+ $ descriptionFactory ->shouldReceive ('create ' )->with (
468
+ 'My Description ' ,
469
+ $ context
470
+ )->andReturn ($ description );
461
471
462
472
$ fixture = Method::create (
463
473
'static void myMethod My Description ' ,
@@ -491,7 +501,9 @@ public function testCreateMethodEmptyArguments() : void
491
501
492
502
$ description = new Description ('My Description ' );
493
503
494
- $ descriptionFactory ->shouldReceive ('create ' )->with ('My Description ' , $ context )->andReturn ($ description );
504
+ $ descriptionFactory ->shouldReceive ('create ' )
505
+ ->with ('My Description ' , $ context )
506
+ ->andReturn ($ description );
495
507
496
508
$ fixture = Method::create (
497
509
'static void myMethod() My Description ' ,
0 commit comments