Skip to content

Commit ab33788

Browse files
committed
[1.x] Skip writing to a closed stream test on PHP8.5
While I couldn't pin it to the exact commit/PR/NEWS/UPGRADING item, PHP8.5 has seen a number of improvements to streams to make them less buggy. As a result, this test, which already confirmed the expected behavior is now failing because an error is tossed.
1 parent 4e998a5 commit ab33788

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/WritableResourceStreamTest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -474,6 +474,10 @@ public function testDoubleCloseWillEmitOnlyOnce()
474474
*/
475475
public function testWritingToClosedWritableResourceStreamShouldNotWriteToStream()
476476
{
477+
if (PHP_VERSION_ID >= 80500) {
478+
$this->markTestSkipped('Since PHP8.5 attempting to write to a closed stream will result in an error');
479+
}
480+
477481
$stream = fopen('php://temp', 'r+');
478482
$filterBuffer = '';
479483
$loop = $this->createLoopMock();

0 commit comments

Comments
 (0)