php-src/ext/standard/tests/misc/time_sleep_until_basic.phpt

21 lines
518 B
Plaintext
Raw Normal View History

2009-08-26 17:17:58 +00:00
--TEST--
time_sleep_until() function - basic test for time_sleep_until()
2010-03-24 22:06:21 +00:00
--SKIPIF--
<?php
if (getenv("SKIP_SLOW_TESTS")) die("skip slow test");
if (!function_exists("time_sleep_until")) die('skip time_sleep_until() not available');
?>
2009-08-26 17:17:58 +00:00
--CREDITS--
Manuel Baldassarri mb@ideato.it
Michele Orselli mo@ideato.it
#PHPTestFest Cesena Italia on 2009-06-20
--FILE--
<?php
$time = microtime(true) + 2;
var_dump(time_sleep_until( (int)$time ));
var_dump(microtime(true) >= (int)$time);
2009-08-26 17:17:58 +00:00
?>
--EXPECT--
bool(true)
2011-09-05 12:00:24 +00:00
bool(true)