From 11b66c6cecd96ffb92bd3506ba0d35834caa11ba Mon Sep 17 00:00:00 2001 From: Antony Dovgal Date: Mon, 29 May 2006 10:42:37 +0000 Subject: [PATCH] add test --- .../tests/file/file_put_contents.phpt | 40 +++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 ext/standard/tests/file/file_put_contents.phpt 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 -- 2.50.1