diff --git a/test/ResourceOutputStreamTest.php b/test/ResourceOutputStreamTest.php index 49f0171..a1441d7 100644 --- a/test/ResourceOutputStreamTest.php +++ b/test/ResourceOutputStreamTest.php @@ -64,7 +64,7 @@ public function testClosedRemoteSocket(): ?\Generator \fclose($b); $this->expectException(StreamException::class); - $this->expectExceptionMessage(/* S|s */ "end of 6 bytes failed with errno=32 Broken pipe"); + $this->expectExceptionMessage(/* S|s */ "end of 6 bytes failed with errno=" . (\stripos(PHP_OS, "win") === 0 ? "10053" : "32 Broken pipe")); // The first write still succeeds somehow... yield $stream->write("foobar");