Annotation of embedaddon/php/ext/standard/tests/misc/time_sleep_until_basic.phpt, revision 1.1.1.1

1.1       misho       1: --TEST--
                      2: time_sleep_until() function - basic test for time_sleep_until()
                      3: --SKIPIF--
                      4: <?php
                      5: if (getenv("SKIP_SLOW_TESTS")) die("skip slow test");
                      6: if (!function_exists("time_sleep_until")) die('skip time_sleep_until() not available');
                      7: ?>
                      8: --CREDITS--
                      9: Manuel Baldassarri mb@ideato.it
                     10: Michele Orselli mo@ideato.it
                     11: #PHPTestFest Cesena Italia on 2009-06-20
                     12: --FILE--
                     13: <?php
                     14:   $time = microtime(true) + 2;
                     15:   var_dump(time_sleep_until( (int)$time ));
                     16:   var_dump(microtime(true) >= (int)$time);
                     17: ?>
                     18: --EXPECT--
                     19: bool(true)
                     20: bool(true)

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>