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

15 lines
284 B
PHP

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