summaryrefslogtreecommitdiff
path: root/ext/standard/tests/misc/time_sleep_until_error1.phpt
blob: eaa809f4d1a4d8c782f1c7a7b0b48d4d0f651537 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
--TEST--
time_sleep_until() function - error test for time_sleep_until()
--SKIPIF--
<?php	if (!function_exists("time_sleep_until")) die('skip time_sleep_until() not available');?>
--CREDITS--
Fabio Fabbrucci fabbrucci@grupporetina.com
Danilo Sanchi sanchi@grupporetina.com
#PHPTestFest Cesena Italia on 2009-06-20
--FILE--
<?php

var_dump(time_sleep_until(time() -1));

?>
--EXPECTF--
Warning: time_sleep_until(): Argument #1 ($timestamp) must be greater than or equal to the current time in %s on line %d
bool(false)