From: Antony Dovgal Date: Mon, 29 May 2006 10:42:54 +0000 (+0000) Subject: add test X-Git-Tag: php-5.2.0RC1~441 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ec68882101c076bd6f3399bcab597f0584569cfc;p=php add test --- diff --git a/ext/standard/tests/file/file_put_contents.phpt b/ext/standard/tests/file/file_put_contents.phpt new file mode 100644 index 0000000000..de08141b80 --- /dev/null +++ b/ext/standard/tests/file/file_put_contents.phpt @@ -0,0 +1,28 @@ +--TEST-- +file_put_contents() and invalid parameters +--FILE-- + +--EXPECTF-- +Warning: file_put_contents(): supplied resource is not a valid stream resource in %s on line %d +bool(false) + +Warning: file_put_contents(): The 2nd parameter should be either a string or an array in %s on line %d +bool(false) + +Warning: file_put_contents(): supplied resource is not a valid Stream-Context resource in %s on line %d +int(6) +Done