xref: /PHP-5.6/ext/standard/tests/time/bug60222.phpt (revision 45e938ec)
1--TEST--
2Bug #60222 (time_nanosleep() does validate input params)
3--FILE--
4<?php
5	var_dump(time_nanosleep(-1, 0));
6	var_dump(time_nanosleep(0, -1));
7?>
8===DONE===
9--EXPECTF--
10Warning: time_nanosleep(): The seconds value must be greater than 0 in %s on line %d
11bool(false)
12
13Warning: time_nanosleep(): The nanoseconds value must be greater than 0 in %s on line %d
14bool(false)
15===DONE===
16