Source

pecl-event / tests / 07-listener-error-win32.phpt

Diff from to

tests/07-listener-error-win32.phpt

 --TEST--
-Check for EventListener error behaviour 
+Check for EventListener error behaviour
 --SKIPIF--
 <?php
 if (!class_exists("EventListener")) die("skip Event extra functions are disabled");
 	var_dump(is_null($listener) != $expect);
 }
 
+$l = new EventListener(new EventBase(), function() {}, NULL, EventUtil::AF_UNIX, 0, 'unix:/tmp/1.sock');
+
 ?>
 --EXPECT--
 bool(true)
+
+Fatal error: EventListener::__construct(): EventBase must be passed by reference in %s on line %d