1
0
mirror of https://github.com/php/php-src.git synced 2026-04-21 15:08:16 +02:00
Files
archived-php-src/ext/standard/tests/general_functions/sleep_error.phpt
T
2020-03-18 19:56:10 +01:00

15 lines
275 B
PHP

--TEST--
Test sleep() function : error conditions
--FILE--
<?php
sleep(-10);
?>
--EXPECTF--
Fatal error: Uncaught ValueError: sleep(): Argument #1 ($seconds) must be greater than or equal to 0 in %s:%d
Stack trace:
#0 %s(%d): sleep(-10)
#1 {main}
thrown in %s on line %d