summaryrefslogtreecommitdiff
path: root/ext/standard/tests/file/flock.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/standard/tests/file/flock.phpt')
-rw-r--r--ext/standard/tests/file/flock.phpt35
1 files changed, 5 insertions, 30 deletions
diff --git a/ext/standard/tests/file/flock.phpt b/ext/standard/tests/file/flock.phpt
index eb2c970e8e..fda546127f 100644
--- a/ext/standard/tests/file/flock.phpt
+++ b/ext/standard/tests/file/flock.phpt
@@ -33,36 +33,11 @@ var_dump($would);
var_dump(flock($fp, -1));
var_dump(flock($fp, 0));
-@unlink($file);
-echo "Done\n";
?>
---EXPECTF--
-Warning: flock() expects at least 2 parameters, 0 given in %s on line %d
-NULL
-
-Warning: flock() expects parameter 1 to be resource, string given in %s on line %d
-NULL
-
-Warning: flock(): %d is not a valid stream resource in %s on line %d
-bool(false)
-bool(true)
-bool(true)
-bool(true)
-bool(true)
-bool(true)
-int(0)
-bool(true)
-int(0)
-bool(true)
-int(0)
-bool(true)
-int(0)
-bool(true)
-
-Warning: flock(): Illegal operation argument in %s on line %d
-bool(false)
-Done
---UEXPECTF--
+===DONE===
+--CLEAN--
+<?php unlink(dirname(__FILE__)."/flock.dat"); ?>
+--EXPECTF--
Warning: flock() expects at least 2 parameters, 0 given in %s on line %d
NULL
@@ -87,4 +62,4 @@ bool(true)
Warning: flock(): Illegal operation argument in %s on line %d
bool(false)
-Done
+===DONE===