@@ -78,6 +78,8 @@ 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 */
8183 $ purge = \Mockery::mock (PurgeCapable::class)
8284 ->shouldReceive ('purge ' )->once ()->with ('/my/route ' , [])
8385 ->shouldReceive ('purge ' )->once ()->with ('/my/route ' , ['X-Test-Header ' => 'xyz ' ])
@@ -97,6 +99,8 @@ public function testRefreshPath(): void
9799 {
98100 $ headers = ['X ' => 'Y ' ];
99101 /** @var MockInterface&RefreshCapable $refresh */
102+ // https://github.com/phpstan/phpstan-mockery/issues/8
103+ /** @phpstan-ignore-next-line */
100104 $ refresh = \Mockery::mock (RefreshCapable::class)
101105 ->shouldReceive ('refresh ' )->once ()->with ('/my/route ' , $ headers )
102106 ->shouldReceive ('flush ' )->never ()
@@ -190,6 +194,8 @@ public function testProxyClientExceptionsAreLogged(): void
190194
191195 $ unreachableException = ProxyUnreachableException::proxyUnreachable ($ clientException );
192196
197+ // https://github.com/phpstan/phpstan-mockery/issues/8
198+ /** @phpstan-ignore-next-line */
193199 $ response = \Mockery::mock (ResponseInterface::class)
194200 ->shouldReceive ('getStatusCode ' )->andReturn (403 )
195201 ->shouldReceive ('getReasonPhrase ' )->andReturn ('Forbidden ' )
@@ -206,6 +212,8 @@ public function testProxyClientExceptionsAreLogged(): void
206212
207213 $ cacheInvalidator = new CacheInvalidator ($ proxyClient );
208214
215+ // https://github.com/phpstan/phpstan-mockery/issues/8
216+ /** @phpstan-ignore-next-line */
209217 $ logger = \Mockery::mock (LoggerInterface::class)
210218 ->shouldReceive ('log ' )->once ()
211219 ->with (
0 commit comments