From ec68882101c076bd6f3399bcab597f0584569cfc Mon Sep 17 00:00:00 2001 From: Antony Dovgal Date: Mon, 29 May 2006 10:42:54 +0000 Subject: [PATCH] add test --- .../tests/file/file_put_contents.phpt | 28 +++++++++++++++++++ 1 file changed, 28 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..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 -- 2.50.1