From addacc166a23f73b571c06b985da7b2f102836c2 Mon Sep 17 00:00:00 2001 From: Daniel Opitz Date: Sun, 7 Jul 2024 14:43:59 +0200 Subject: [PATCH] Fix tests for PHP 8.3 --- tests/AppTest.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/AppTest.php b/tests/AppTest.php index 3b0cbf465..6b593a8ba 100644 --- a/tests/AppTest.php +++ b/tests/AppTest.php @@ -1684,7 +1684,7 @@ public function testRun(): void }); $streamProphecy->eof()->willReturn(false); $streamProphecy->isSeekable()->willReturn(true); - $streamProphecy->rewind(); + $streamProphecy->rewind()->shouldBeCalled(); $responseProphecy = $this->prophesize(ResponseInterface::class); $responseProphecy->getBody()->willReturn($streamProphecy->reveal()); @@ -1731,13 +1731,13 @@ public function testRunWithoutPassingInServerRequest(): void return 0; }); $streamProphecy->read(1)->willReturn('_'); - $streamProphecy->read('11')->will(function () { + $streamProphecy->read(11)->will(function () { $this->eof()->willReturn(true); return $this->reveal()->__toString(); }); $streamProphecy->eof()->willReturn(false); $streamProphecy->isSeekable()->willReturn(true); - $streamProphecy->rewind(); + $streamProphecy->rewind()->shouldBeCalled();; $responseProphecy = $this->prophesize(ResponseInterface::class); $responseProphecy->getBody()->willReturn($streamProphecy->reveal());