Skip to content

Commit 31d24e4

Browse files
Remove calls to TestCase::iniSet() and calls to deprecated methods of MockBuilder
1 parent 42a12aa commit 31d24e4

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Tests/Firewall/ContextListenerTest.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -366,8 +366,11 @@ public function testWithPreviousNotStartedSession()
366366

367367
public function testSessionIsNotReported()
368368
{
369-
$usageReporter = $this->getMockBuilder(\stdClass::class)->addMethods(['__invoke'])->getMock();
370-
$usageReporter->expects($this->never())->method('__invoke');
369+
$this->expectNotToPerformAssertions();
370+
371+
$usageReporter = static function (): void {
372+
throw new \LogicException('This should not be called');
373+
};
371374

372375
$session = new Session(new MockArraySessionStorage(), null, null, $usageReporter);
373376

0 commit comments

Comments
 (0)