diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 47b27e8..1c539ef 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -13,7 +13,7 @@ jobs: strategy: matrix: - php-version: [ '8.3', '8.4' ] + php-version: [ '8.3', '8.4', '8.5' ] name: Run tests on PHP v${{ matrix.php-version }} @@ -41,4 +41,4 @@ jobs: run: composer install --no-interaction --prefer-dist --no-progress - name: Run phpunit tests - run: composer test \ No newline at end of file + run: composer test diff --git a/test/Unit/System/File/FileTest.php b/test/Unit/System/File/FileTest.php index b9736a2..ec479d2 100644 --- a/test/Unit/System/File/FileTest.php +++ b/test/Unit/System/File/FileTest.php @@ -192,9 +192,9 @@ public function testGetPosition(): void */ public function testThrowsExceptionOnImpossibleGetPosition(): void { - $element = $this->createElement("/dev/null"); + $element = $this->createElement("php://stdin"); $this->expectException(TellException::class); - $this->expectExceptionMessage("Could not get file position (/dev/null)"); + $this->expectExceptionMessage("Could not get file position (php://stdin)"); $element->getPosition(); } @@ -461,4 +461,4 @@ public function testSocketThrowExceptionIncludesPreviousPhpError(): void $this->expectExceptionMessage("Test: warning (" . $this->getTmpPath() . "/test)"); $throwExceptionMethod->invoke($element, "Test"); } -} \ No newline at end of file +}