Skip to content

Commit

Permalink
Fix tests for PHP 8.3
Browse files Browse the repository at this point in the history
  • Loading branch information
odan committed Jul 7, 2024
1 parent 5eeaa19 commit addacc1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/AppTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down Expand Up @@ -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());
Expand Down

0 comments on commit addacc1

Please sign in to comment.