diff options
Diffstat (limited to 'ext/standard/tests/file/file_put_contents.phpt')
-rw-r--r-- | ext/standard/tests/file/file_put_contents.phpt | 20 |
1 files changed, 5 insertions, 15 deletions
diff --git a/ext/standard/tests/file/file_put_contents.phpt b/ext/standard/tests/file/file_put_contents.phpt index 19f7c2df00..7a9646d979 100644 --- a/ext/standard/tests/file/file_put_contents.phpt +++ b/ext/standard/tests/file/file_put_contents.phpt @@ -12,21 +12,11 @@ var_dump(file_put_contents($file, new stdClass)); $fp = fopen($file, "r"); var_dump(file_put_contents($file, "string", 0, $fp)); -@unlink($file); - -echo "Done\n"; ?> ---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-- +===DONE=== +--CLEAN-- +<?php unlink(dirname(__FILE__)."/file_put_contents.txt"); ?> +--EXPECTF-- Warning: file_put_contents(): supplied resource is not a valid stream resource in %s on line %d bool(false) @@ -37,4 +27,4 @@ Warning: file_put_contents(): supplied resource is not a valid Stream-Context re Notice: file_put_contents(): 6 character unicode buffer downcoded for binary stream runtime_encoding in %s on line %d int(6) -Done +===DONE=== |