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());