Skip to content

Commit d92d0ec

Browse files
authored
Merge pull request #268 from SimonFrings/hhvm
Skip unsupported tests for HHVM
2 parents 07b37d5 + 0d4526e commit d92d0ec

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

tests/TcpServerTest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -315,6 +315,10 @@ public function testEmitsErrorWhenAcceptListenerFails()
315315
*/
316316
public function testEmitsTimeoutErrorWhenAcceptListenerFails(\RuntimeException $exception)
317317
{
318+
if (defined('HHVM_VERSION')) {
319+
$this->markTestSkipped('not supported on HHVM');
320+
}
321+
318322
$this->assertEquals('Unable to accept new connection: ' . socket_strerror(SOCKET_ETIMEDOUT), $exception->getMessage());
319323
$this->assertEquals(SOCKET_ETIMEDOUT, $exception->getCode());
320324
}

tests/UnixServerTest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -320,6 +320,10 @@ public function testEmitsErrorWhenAcceptListenerFails()
320320
*/
321321
public function testEmitsTimeoutErrorWhenAcceptListenerFails(\RuntimeException $exception)
322322
{
323+
if (defined('HHVM_VERSION')) {
324+
$this->markTestSkipped('not supported on HHVM');
325+
}
326+
323327
$this->assertEquals('Unable to accept new connection: ' . socket_strerror(SOCKET_ETIMEDOUT), $exception->getMessage());
324328
$this->assertEquals(SOCKET_ETIMEDOUT, $exception->getCode());
325329
}

0 commit comments

Comments
 (0)