Commits

Ruslan Osmanov committed 90d156c

Fix: bug #64680 where we should check for SKIP_ONLINE_TESTS environment variable

  • Participants
  • Parent commits 522e2fb

Comments (0)

Files changed (2)

   <license uri="http://www.php.net/license">PHP</license>
   <notes><![CDATA[
   Fix: bug #64678 where Fedora Packaging Guidlines required LICENSE file
+  Fix: bug #64680 where we should check for SKIP_ONLINE_TESTS environment variable
   ]]></notes>
   <!--}}}-->
   <!--{{{ Contents -->
       <license uri="http://www.php.net/license">PHP</license>
       <notes><![CDATA[
   Fix: bug #64678 where Fedora Packaging Guidlines required LICENSE file
+  Fix: bug #64680 where we should check for SKIP_ONLINE_TESTS environment variable
   ]]></notes>
     </release>
     <!--}}}-->

File tests/04-bevent-socket.phpt

 --TEST--
 Check for event_buffer sockets 
+--SKIPIF--
+<?php
+    if (!extension_loaded('event')) {
+        die('skip - event extension not available.');
+    }
+    if (getenv("SKIP_ONLINE_TESTS")) {
+        die("skip test requiring internet connection");
+    }
+?>
 --FILE--
 <?php 
 $base = new EventBase();