Skip to content

Commit

Permalink
adjust tests
Browse files Browse the repository at this point in the history
  • Loading branch information
IonBazan committed Sep 21, 2021
1 parent b5ed944 commit 6111389
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ public function testReadConvertsStreamToString()
$stream = $this->createStream($content);

$pdo->prepareResult->expects($this->once())->method('fetchAll')
->willReturn([[$stream, 42, time()]]);
->willReturn([[$stream, time() + 42]]);

$storage = new PdoSessionHandler($pdo);
$result = $storage->read('foo');
Expand Down Expand Up @@ -165,7 +165,7 @@ public function testReadLockedConvertsStreamToString()

$selectStmt->expects($this->atLeast(2))->method('fetchAll')
->willReturnCallback(function () use (&$exception, $stream) {
return $exception ? [[$stream, 42, time()]] : [];
return $exception ? [[$stream, time() + 42]] : [];
});

$insertStmt->expects($this->once())->method('execute')
Expand Down

0 comments on commit 6111389

Please sign in to comment.