Skip to content

Commit 3ce3185

Browse files
committed
Skip memory stream tests on unsupported HHVM
1 parent 006b41b commit 3ce3185

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

tests/ConnectionTest.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ class ConnectionTest extends TestCase
88
{
99
public function testCloseConnectionWillCloseSocketResource()
1010
{
11+
if (defined('HHVM_VERSION')) {
12+
$this->markTestSkipped('HHVM does not support socket operation on test memory stream');
13+
}
14+
1115
$resource = fopen('php://memory', 'r+');
1216
$loop = $this->getMockBuilder('React\EventLoop\LoopInterface')->getMock();
1317

@@ -19,6 +23,10 @@ public function testCloseConnectionWillCloseSocketResource()
1923

2024
public function testCloseConnectionWillRemoveResourceFromLoopBeforeClosingResource()
2125
{
26+
if (defined('HHVM_VERSION')) {
27+
$this->markTestSkipped('HHVM does not support socket operation on test memory stream');
28+
}
29+
2230
$resource = fopen('php://memory', 'r+');
2331
$loop = $this->getMockBuilder('React\EventLoop\LoopInterface')->getMock();
2432
$loop->expects($this->once())->method('addWriteStream')->with($resource);

0 commit comments

Comments
 (0)