@@ -36,8 +36,8 @@ public function gettingStuffFromGoogleShouldWork()
3636 /** @test */
3737 public function gettingEncryptedStuffFromGoogleShouldWork ()
3838 {
39- if (! function_exists ( ' stream_socket_enable_crypto ' )) {
40- $ this ->markTestSkipped ('Not supported on your platform (outdated HHVM?) ' );
39+ if (defined ( ' HHVM_VERSION ' )) {
40+ $ this ->markTestSkipped ('Not supported on legacy HHVM ' );
4141 }
4242
4343 $ loop = Factory::create ();
@@ -55,8 +55,8 @@ public function gettingEncryptedStuffFromGoogleShouldWork()
5555 /** @test */
5656 public function gettingEncryptedStuffFromGoogleShouldWorkIfHostIsResolvedFirst ()
5757 {
58- if (! function_exists ( ' stream_socket_enable_crypto ' )) {
59- $ this ->markTestSkipped ('Not supported on your platform (outdated HHVM?) ' );
58+ if (defined ( ' HHVM_VERSION ' )) {
59+ $ this ->markTestSkipped ('Not supported on legacy HHVM ' );
6060 }
6161
6262 $ loop = Factory::create ();
@@ -363,8 +363,8 @@ public function testConnectingFailsIfTimeoutIsTooSmall()
363363
364364 public function testSelfSignedRejectsIfVerificationIsEnabled ()
365365 {
366- if (! function_exists ( ' stream_socket_enable_crypto ' )) {
367- $ this ->markTestSkipped ('Not supported on your platform (outdated HHVM?) ' );
366+ if (defined ( ' HHVM_VERSION ' )) {
367+ $ this ->markTestSkipped ('Not supported on legacy HHVM ' );
368368 }
369369
370370 $ loop = Factory::create ();
@@ -381,8 +381,8 @@ public function testSelfSignedRejectsIfVerificationIsEnabled()
381381
382382 public function testSelfSignedResolvesIfVerificationIsDisabled ()
383383 {
384- if (! function_exists ( ' stream_socket_enable_crypto ' )) {
385- $ this ->markTestSkipped ('Not supported on your platform (outdated HHVM?) ' );
384+ if (defined ( ' HHVM_VERSION ' )) {
385+ $ this ->markTestSkipped ('Not supported on legacy HHVM ' );
386386 }
387387
388388 $ loop = Factory::create ();
0 commit comments