From: Felix De Vliegher Date: Thu, 26 Jun 2008 09:12:40 +0000 (+0000) Subject: MFB: tests for lchown(), testfest.php.net task number 129. X-Git-Tag: BEFORE_HEAD_NS_CHANGE~1465 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8c22747b68692b99787b498d3e40375ec924c043;p=php MFB: 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..879da0a99f --- /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 (Unicode or binary), object given in %s on line %d +bool(true) + +Warning: lchown() expects parameter 1 to be string (Unicode or binary), array given in %s on line %d +bool(true) + +Warning: lchown(): Operation not permitted in %s on line %d +bool(false) +===DONE===