Skip to content

Commit d9e7f89

Browse files
committed
Skip HHVM when testing writing to read-only MEMORY streams
1 parent 2103ef9 commit d9e7f89

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

tests/BufferTest.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,11 @@ public function testWriteReturnsFalseWhenBufferIsFull()
6060
*/
6161
public function testWriteEmitsErrorWhenResourceIsNotWritable()
6262
{
63+
if (defined('HHVM_VERSION')) {
64+
// via https://github.com/reactphp/stream/pull/52/files#r75493076
65+
$this->markTestSkipped('HHVM allows writing to read-only memory streams');
66+
}
67+
6368
$stream = fopen('php://temp', 'r');
6469
$loop = $this->createLoopMock();
6570

0 commit comments

Comments
 (0)