mirror of
https://github.com/php-win-ext/pecl-system-sync.git
synced 2026-03-24 00:52:14 +01:00
19 lines
377 B
PHP
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)
|