From c2f376aba36ead16f34451b58f8315d9bc9401aa Mon Sep 17 00:00:00 2001 From: Julian Vennen Date: Wed, 1 Jul 2026 11:09:46 +0200 Subject: [PATCH 1/2] Add php 8.5 to test matrix --- .github/workflows/test.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 From 319c2186e1aa7b0fa3de0b789eb416581c0fbd72 Mon Sep 17 00:00:00 2001 From: Julian Vennen Date: Wed, 1 Jul 2026 11:33:10 +0200 Subject: [PATCH 2/2] Try stdin for impossible get position --- test/Unit/System/File/FileTest.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 +}