@@ -78,10 +78,10 @@ public function testSupportsInvalid(): void
7878 public function testInvalidatePath (): void
7979 {
8080 /** @var MockInterface&PurgeCapable $purge */
81- // https://github.com/phpstan/phpstan-mockery/issues/8
82- /** @phpstan-ignore-next-line */
8381 $ purge = \Mockery::mock (PurgeCapable::class)
8482 ->shouldReceive ('purge ' )->once ()->with ('/my/route ' , [])
83+ // https://github.com/phpstan/phpstan-mockery/issues/8
84+ /* @phpstan-ignore-next-line */
8585 ->shouldReceive ('purge ' )->once ()->with ('/my/route ' , ['X-Test-Header ' => 'xyz ' ])
8686 ->shouldReceive ('flush ' )->once ()
8787 ->getMock ();
@@ -99,10 +99,10 @@ public function testRefreshPath(): void
9999 {
100100 $ headers = ['X ' => 'Y ' ];
101101 /** @var MockInterface&RefreshCapable $refresh */
102- // https://github.com/phpstan/phpstan-mockery/issues/8
103- /** @phpstan-ignore-next-line */
104102 $ refresh = \Mockery::mock (RefreshCapable::class)
105103 ->shouldReceive ('refresh ' )->once ()->with ('/my/route ' , $ headers )
104+ // https://github.com/phpstan/phpstan-mockery/issues/8
105+ /* @phpstan-ignore-next-line */
106106 ->shouldReceive ('flush ' )->never ()
107107 ->getMock ();
108108
@@ -194,10 +194,10 @@ public function testProxyClientExceptionsAreLogged(): void
194194
195195 $ unreachableException = ProxyUnreachableException::proxyUnreachable ($ clientException );
196196
197- // https://github.com/phpstan/phpstan-mockery/issues/8
198- /** @phpstan-ignore-next-line */
199197 $ response = \Mockery::mock (ResponseInterface::class)
200198 ->shouldReceive ('getStatusCode ' )->andReturn (403 )
199+ // https://github.com/phpstan/phpstan-mockery/issues/8
200+ /* @phpstan-ignore-next-line */
201201 ->shouldReceive ('getReasonPhrase ' )->andReturn ('Forbidden ' )
202202 ->getMock ();
203203 $ responseException = ProxyResponseException::proxyResponse (new HttpException ('test ' , $ failedRequest , $ response ));
@@ -212,15 +212,15 @@ public function testProxyClientExceptionsAreLogged(): void
212212
213213 $ cacheInvalidator = new CacheInvalidator ($ proxyClient );
214214
215- // https://github.com/phpstan/phpstan-mockery/issues/8
216- /** @phpstan-ignore-next-line */
217215 $ logger = \Mockery::mock (LoggerInterface::class)
218216 ->shouldReceive ('log ' )->once ()
219217 ->with (
220218 'critical ' ,
221219 'Request to caching proxy at 127.0.0.1 failed with message "Couldn \'t connect to host" ' ,
222220 ['exception ' => $ unreachableException ]
223221 )
222+ // https://github.com/phpstan/phpstan-mockery/issues/8
223+ /* @phpstan-ignore-next-line */
224224 ->shouldReceive ('log ' )->once ()
225225 ->with (
226226 'critical ' ,
0 commit comments