Skip to content

Commit 2b8f87e

Browse files
committed
phpstan level 3 for tests
1 parent fa7742a commit 2b8f87e

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

phpstan.tests.neon.dist

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
parameters:
2-
level: 2
2+
level: 3
33
paths:
44
- tests
5-

tests/Unit/SymfonyCache/PurgeListenerTest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,8 @@ public function testInvalidConfiguration(): void
187187

188188
private function getKernelMock(StoreInterface $store): MockInterface&CacheInvalidation
189189
{
190+
// https://github.com/phpstan/phpstan-mockery/issues/8
191+
/** @phpstan-ignore-next-line */
190192
return \Mockery::mock(CacheInvalidation::class)
191193
->shouldReceive('getStore')
192194
->once()
@@ -196,6 +198,8 @@ private function getKernelMock(StoreInterface $store): MockInterface&CacheInvali
196198

197199
private function getUnusedKernelMock(): CacheInvalidation&MockInterface
198200
{
201+
// https://github.com/phpstan/phpstan-mockery/issues/8
202+
/** @phpstan-ignore-next-line */
199203
return \Mockery::mock(CacheInvalidation::class)
200204
->shouldNotReceive('getStore')
201205
->getMock();

tests/Unit/SymfonyCache/PurgeTagsListenerTest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,8 @@ public function testInvalidConfiguration(): void
180180

181181
private function getKernelMock(StoreInterface $store): CacheInvalidation&MockInterface
182182
{
183+
// https://github.com/phpstan/phpstan-mockery/issues/8
184+
/** @phpstan-ignore-next-line */
183185
return \Mockery::mock(CacheInvalidation::class)
184186
->shouldReceive('getStore')
185187
->once()
@@ -189,6 +191,8 @@ private function getKernelMock(StoreInterface $store): CacheInvalidation&MockInt
189191

190192
private function getUnusedKernelMock(): CacheInvalidation&MockInterface
191193
{
194+
// https://github.com/phpstan/phpstan-mockery/issues/8
195+
/** @phpstan-ignore-next-line */
192196
return \Mockery::mock(CacheInvalidation::class)
193197
->shouldNotReceive('getStore')
194198
->getMock();

0 commit comments

Comments
 (0)