diff --git a/test/Unit.php b/test/Unit.php index 51017dbec2..53c7a895bd 100644 --- a/test/Unit.php +++ b/test/Unit.php @@ -1047,7 +1047,10 @@ protected function _hasNetwork($config = array()) { }); checkdnsrr($config['host'], 'ANY'); - fopen($url, 'r'); + + if ($handle = fopen($url, 'r')) { + fclose($handle); + } restore_error_handler(); return !$failed;