Skip to content

Commit

Permalink
Fix test failing on PHP 8.3
Browse files Browse the repository at this point in the history
  • Loading branch information
RikudouSage committed Apr 17, 2024
1 parent 61102ed commit 919c131
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions tests/Helper/StringStreamTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,13 @@ public function testTell()
$this->instance->seek(11);
self::assertEquals(11, $this->instance->tell());
$this->instance->seek(12);
$this->expectException(StreamException::class);
$this->instance->tell();

if (PHP_VERSION_ID < 80300) {
$this->expectException(StreamException::class);
$this->instance->tell();
} else {
self::assertSame(12, $this->instance->tell());
}
}

public function testClose()
Expand Down

0 comments on commit 919c131

Please sign in to comment.