diff options
author | Lorry Tar Creator <lorry-tar-importer@baserock.org> | 2013-03-14 05:42:27 +0000 |
---|---|---|
committer | <> | 2013-04-03 16:25:08 +0000 |
commit | c4dd7a1a684490673e25aaf4fabec5df138854c4 (patch) | |
tree | 4d57c44caae4480efff02b90b9be86f44bf25409 /ext/standard/tests/file/touch_error.phpt | |
download | php2-master.tar.gz |
Imported from /home/lorry/working-area/delta_php2/php-5.4.13.tar.bz2.HEADphp-5.4.13master
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 0000000..ec58fee --- /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) + |