From: Antony Dovgal Date: Mon, 29 May 2006 10:42:37 +0000 (+0000) Subject: add test X-Git-Tag: BEFORE_NEW_OUTPUT_API~49 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=11b66c6cecd96ffb92bd3506ba0d35834caa11ba;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..19f7c2df00 --- /dev/null +++ b/ext/standard/tests/file/file_put_contents.phpt @@ -0,0 +1,40 @@ +--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(): 2nd parameter must be non-object (for now) 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 +--UEXPECTF-- +Warning: file_put_contents(): supplied resource is not a valid stream resource in %s on line %d +bool(false) + +Warning: file_put_contents(): 2nd parameter must be non-object (for now) 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 + +Notice: file_put_contents(): 6 character unicode buffer downcoded for binary stream runtime_encoding in %s on line %d +int(6) +Done