diff options
Diffstat (limited to 'ext/standard/tests/file/touch_error.phpt')
-rw-r--r-- | ext/standard/tests/file/touch_error.phpt | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/ext/standard/tests/file/touch_error.phpt b/ext/standard/tests/file/touch_error.phpt new file mode 100644 index 0000000000..ec58fee511 --- /dev/null +++ b/ext/standard/tests/file/touch_error.phpt @@ -0,0 +1,22 @@ +--TEST-- +touch() error tests +--CREDITS-- +Dave Kelsey <d_kelsey@uk.ibm.com> +--FILE-- +<?php + +var_dump(touch()); +var_dump(touch(1, 2, 3, 4)); +var_dump(touch("/no/such/file/or/directory")); + +?> +--EXPECTF-- +Warning: touch() expects at least 1 parameter, 0 given in %s on line %d +NULL + +Warning: touch() expects at most 3 parameters, 4 given in %s on line %d +NULL + +Warning: touch(): Unable to create file /no/such/file/or/directory because No such file or directory in %s on line %d +bool(false) + |