1--TEST--
2time_nanosleep — Delay for a number of seconds and nanoseconds
3--SKIPIF--
4<?php
5if (!function_exists('time_nanosleep')) die("skip");
6?>
7--CREDITS--
8Àlex Corretgé - alex@corretge.cat
9--FILE--
10<?php
11
12time_nanosleep(-2, 1000);
13
14?>
15--EXPECTF--
16Fatal error: Uncaught ValueError: time_nanosleep(): Argument #1 ($seconds) must be greater than or equal to 0 in %s:%d
17Stack trace:
18#0 %s(%d): time_nanosleep(-2, 1000)
19#1 {main}
20  thrown in %s on line %d
21