php-src/ext/standard/tests/misc/time_nanosleep_error4.phpt
2009-07-15 10:06:38 +00:00

18 lines
472 B
PHP

--TEST--
time_nanosleep Delay for a number of seconds and nanoseconds
--SKIPIF--
<?php
if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') die("skip Test is not valid for Windows");
if (!function_exists('time_nanosleep')) die("skip");
?>
--CREDITS--
Àlex Corretgé - alex@corretge.cat
--FILE--
<?php
$nano = time_nanosleep(0, -10);
?>
--EXPECTF--
Warning: time_nanosleep(): nanoseconds was not in the range 0 to 999 999 999 or seconds was negative in %s.php on line %d