Commits

Ruslan Osmanov committed 9393a00

Fixed tests for Win32

Comments (0)

Files changed (4)

tests/02-features.phpt

 --TEST--
-Check for event configuration features 
+Check for event configuration features
+--SKIPIF--
+<?php
+if (substr(PHP_OS, 0, 3) == "WIN") die('skip Not for Windows');
+?>
 --FILE--
-<?php 
+<?php
 $cfg = new EventConfig();
 
 if ($cfg->requireFeatures(EventConfig::FEATURE_FDS)) {

tests/07-listener-error-win32.phpt

 $l = new EventListener(new EventBase(), function() {}, NULL, EventUtil::AF_UNIX, 0, 'unix:/tmp/1.sock');
 
 ?>
---EXPECT--
+--EXPECTF--
 bool(true)
 
 Fatal error: EventListener::__construct(): EventBase must be passed by reference in %s on line %d

tests/21-bevent-sslfilter-error.phpt

 --TEST--
 Check for EventBufferEvent::sslFilter() error behavior
+--SKIPIF--
+<?php
+if (!class_exists("EventSslContext")) die("skip Event extra functions are disabled");
+?>
 --FILE--
 <?php
 $base = new EventBase();

tests/21-bevent-sslsocket-error.phpt

 --TEST--
 Check for EventBufferEvent::sslSocket() error behavior
+--SKIPIF--
+<?php
+if (!class_exists("EventSslContext")) die("skip Event extra functions are disabled");
+?>
 --FILE--
 <?php
 $ctx = new EventSslContext(EventSslContext::SSLv3_SERVER_METHOD, []);