Files
archived-pecl-system-sync/tests/009.phpt

19 lines
377 B
PHP

--TEST--
SyncEvent - named automatic event object allocation and firing.
--SKIPIF--
<?php if (!extension_loaded("sync")) echo "skip"; ?>
--FILE--
<?php
$event = new SyncEvent("Awesome_" . PHP_INT_SIZE);
var_dump($event->wait(0));
var_dump($event->fire());
var_dump($event->wait(0));
var_dump($event->wait(0));
?>
--EXPECT--
bool(false)
bool(true)
bool(true)
bool(false)