1--TEST--
2Test sleep() function : error conditions
3--FILE--
4<?php
5
6sleep(-10);
7
8?>
9--EXPECTF--
10Fatal error: Uncaught ValueError: sleep(): Argument #1 ($seconds) must be greater than or equal to 0 in %s:%d
11Stack trace:
12#0 %s(%d): sleep(-10)
13#1 {main}
14  thrown in %s on line %d
15