Skip to content

Commit

Permalink
Skip all TLS tests on legacy HHVM
Browse files Browse the repository at this point in the history
  • Loading branch information
clue committed May 17, 2020
1 parent 8869167 commit 8590a1d
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 18 deletions.
4 changes: 2 additions & 2 deletions tests/FunctionalSecureServerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ class FunctionalSecureServerTest extends TestCase

public function setUp()
{
if (!function_exists('stream_socket_enable_crypto')) {
$this->markTestSkipped('Not supported on your platform (outdated HHVM?)');
if (defined('HHVM_VERSION')) {
$this->markTestSkipped('Not supported on legacy HHVM');
}
}

Expand Down
16 changes: 8 additions & 8 deletions tests/IntegrationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ public function gettingStuffFromGoogleShouldWork()
/** @test */
public function gettingEncryptedStuffFromGoogleShouldWork()
{
if (!function_exists('stream_socket_enable_crypto')) {
$this->markTestSkipped('Not supported on your platform (outdated HHVM?)');
if (defined('HHVM_VERSION')) {
$this->markTestSkipped('Not supported on legacy HHVM');
}

$loop = Factory::create();
Expand All @@ -55,8 +55,8 @@ public function gettingEncryptedStuffFromGoogleShouldWork()
/** @test */
public function gettingEncryptedStuffFromGoogleShouldWorkIfHostIsResolvedFirst()
{
if (!function_exists('stream_socket_enable_crypto')) {
$this->markTestSkipped('Not supported on your platform (outdated HHVM?)');
if (defined('HHVM_VERSION')) {
$this->markTestSkipped('Not supported on legacy HHVM');
}

$loop = Factory::create();
Expand Down Expand Up @@ -363,8 +363,8 @@ public function testConnectingFailsIfTimeoutIsTooSmall()

public function testSelfSignedRejectsIfVerificationIsEnabled()
{
if (!function_exists('stream_socket_enable_crypto')) {
$this->markTestSkipped('Not supported on your platform (outdated HHVM?)');
if (defined('HHVM_VERSION')) {
$this->markTestSkipped('Not supported on legacy HHVM');
}

$loop = Factory::create();
Expand All @@ -381,8 +381,8 @@ public function testSelfSignedRejectsIfVerificationIsEnabled()

public function testSelfSignedResolvesIfVerificationIsDisabled()
{
if (!function_exists('stream_socket_enable_crypto')) {
$this->markTestSkipped('Not supported on your platform (outdated HHVM?)');
if (defined('HHVM_VERSION')) {
$this->markTestSkipped('Not supported on legacy HHVM');
}

$loop = Factory::create();
Expand Down
4 changes: 2 additions & 2 deletions tests/SecureConnectorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ class SecureConnectorTest extends TestCase

public function setUp()
{
if (!function_exists('stream_socket_enable_crypto')) {
$this->markTestSkipped('Not supported on your platform (outdated HHVM?)');
if (defined('HHVM_VERSION')) {
$this->markTestSkipped('Not supported on legacy HHVM');
}

$this->loop = $this->getMockBuilder('React\EventLoop\LoopInterface')->getMock();
Expand Down
4 changes: 2 additions & 2 deletions tests/SecureIntegrationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ class SecureIntegrationTest extends TestCase

public function setUp()
{
if (!function_exists('stream_socket_enable_crypto')) {
$this->markTestSkipped('Not supported on your platform (outdated HHVM?)');
if (defined('HHVM_VERSION')) {
$this->markTestSkipped('Not supported on legacy HHVM');
}

$this->loop = LoopFactory::create();
Expand Down
4 changes: 2 additions & 2 deletions tests/SecureServerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ class SecureServerTest extends TestCase
{
public function setUp()
{
if (!function_exists('stream_socket_enable_crypto')) {
$this->markTestSkipped('Not supported on your platform (outdated HHVM?)');
if (defined('HHVM_VERSION')) {
$this->markTestSkipped('Not supported on legacy HHVM');
}
}

Expand Down
4 changes: 2 additions & 2 deletions tests/ServerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -182,8 +182,8 @@ public function testEmitsConnectionWithInheritedContextOptions()

public function testDoesNotEmitSecureConnectionForNewPlaintextConnectionThatIsIdle()
{
if (!function_exists('stream_socket_enable_crypto')) {
$this->markTestSkipped('Not supported on your platform (outdated HHVM?)');
if (defined('HHVM_VERSION')) {
$this->markTestSkipped('Not supported on legacy HHVM');
}

$loop = Factory::create();
Expand Down

0 comments on commit 8590a1d

Please sign in to comment.