Skip to content

Commit

Permalink
Merge branch '3.4' into 4.4
Browse files Browse the repository at this point in the history
* 3.4:
  Fix PHPUnit 8.5 deprecations.
  • Loading branch information
nicolas-grekas committed Jul 23, 2020
2 parents 44f5147 + 5219dba commit 3675676
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Tests/Session/Storage/Proxy/SessionHandlerProxyTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ public function testGc()
*/
public function testValidateId()
{
$mock = $this->getMockBuilder(['SessionHandlerInterface', 'SessionUpdateTimestampHandlerInterface'])->getMock();
$mock = $this->getMockBuilder(TestSessionHandler::class)->getMock();
$mock->expects($this->once())
->method('validateId');

Expand All @@ -142,7 +142,7 @@ public function testValidateId()
*/
public function testUpdateTimestamp()
{
$mock = $this->getMockBuilder(['SessionHandlerInterface', 'SessionUpdateTimestampHandlerInterface'])->getMock();
$mock = $this->getMockBuilder(TestSessionHandler::class)->getMock();
$mock->expects($this->once())
->method('updateTimestamp')
->willReturn(false);
Expand All @@ -156,3 +156,7 @@ public function testUpdateTimestamp()
$this->proxy->updateTimestamp('id', 'data');
}
}

abstract class TestSessionHandler implements \SessionHandlerInterface, \SessionUpdateTimestampHandlerInterface
{
}

0 comments on commit 3675676

Please sign in to comment.