1--TEST--
2touch() error tests
3--CREDITS--
4Dave Kelsey <d_kelsey@uk.ibm.com>
5--FILE--
6<?php
7
8var_dump(touch());
9var_dump(touch(1, 2, 3, 4));
10var_dump(touch("/no/such/file/or/directory"));
11
12?>
13--EXPECTF--
14Warning: touch() expects at least 1 parameter, 0 given in %s on line %d
15NULL
16
17Warning: touch() expects at most 3 parameters, 4 given in %s on line %d
18NULL
19
20Warning: touch(): Unable to create file /no/such/file/or/directory because No such file or directory in %s on line %d
21bool(false)
22