Annotation of embedaddon/php/ext/standard/tests/file/touch_error.phpt, revision 1.1.1.1

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

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>