1--TEST--
2time_nanosleep — Delay for a number of seconds and nanoseconds
3--SKIPIF--
4<?php
5if (strpos(strtoupper(PHP_OS), 'WIN') !== false) die("skip Test is not valid for Windows");
6if (!function_exists('time_nanosleep')) die("skip");
7?>
8--CREDITS--
9Àlex Corretgé - alex@corretge.cat
10--FILE--
11<?php
12
13$nano = time_nanosleep(-2, 1000);
14
15?>
16--EXPECTF--
17Warning: time_nanosleep(): The seconds value must be greater than 0 in %stime_nanosleep_error3.php on line %d
18