From: Felix De Vliegher Date: Thu, 26 Jun 2008 09:10:54 +0000 (+0000) Subject: Tests for lchown(), testfest.php.net task number 129. X-Git-Tag: php-5.3.0alpha1~594 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4f7961b31a271967913584af3d69676dbdf1c492;p=php Tests for lchown(), testfest.php.net task number 129. --- diff --git a/ext/standard/tests/file/lchown_basic.phpt b/ext/standard/tests/file/lchown_basic.phpt new file mode 100644 index 0000000000..0b7edb6fde --- /dev/null +++ b/ext/standard/tests/file/lchown_basic.phpt @@ -0,0 +1,43 @@ +--TEST-- +Test lchown() function : basic functionality +--SKIPIF-- + +--FILE-- + +===DONE=== +--CLEAN-- + +--EXPECTF-- +*** Testing lchown() : basic functionality *** +bool(true) +bool(true) +bool(true) +bool(true) +===DONE=== diff --git a/ext/standard/tests/file/lchown_error.phpt b/ext/standard/tests/file/lchown_error.phpt new file mode 100644 index 0000000000..de7d922887 --- /dev/null +++ b/ext/standard/tests/file/lchown_error.phpt @@ -0,0 +1,68 @@ +--TEST-- +Test lchown() function : error functionality +--SKIPIF-- + +--FILE-- + +===DONE=== +--CLEAN-- + +--EXPECTF-- +*** Testing lchown() : error functionality *** + +Warning: lchown() expects exactly 2 parameters, 1 given in %s on line %d +bool(true) + +Warning: lchown() expects exactly 2 parameters, 3 given in %s on line %d +bool(true) + +Warning: lchown(): No such file or directory in %s on line %d +bool(false) + +Warning: lchown() expects parameter 1 to be string, object given in %s on line %d +bool(true) + +Warning: lchown() expects parameter 1 to be string, array given in %s on line %d +bool(true) + +Warning: lchown(): Operation not permitted in %s on line %d +bool(false) +===DONE===