cvs: php4 /ext/standard/tests/file 003.inc 003.phpt
| From: | Derick Rethans | Date: | Sat, 12 Oct 2002 16:53:13 +0000 |
| Subject: | cvs: php4 /ext/standard/tests/file 003.inc 003.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-14871@lists.php.net to get a copy of this message | ||
derick Sat Oct 12 12:53:13 2002 EDT
Removed files:
/php4/ext/standard/tests/file 003.inc
Modified files:
/php4/ext/standard/tests/file 003.phpt
Log:
- Make the test do what it says
Index: php4/ext/standard/tests/file/003.phpt
diff -u php4/ext/standard/tests/file/003.phpt:1.4 php4/ext/standard/tests/file/003.phpt:1.5
--- php4/ext/standard/tests/file/003.phpt:1.4 Wed May 15 21:07:21 2002
+++ php4/ext/standard/tests/file/003.phpt Sat Oct 12 12:53:13 2002
@@ -3,15 +3,41 @@
--POST--
--GET--
--FILE--
-<?php require '003.inc' ?>
+<?php
+
+$funcs = array(
+ 'is_writable',
+ 'is_readable',
+ 'is_executable',
+ 'is_file',
+ 'file_exists',
+);
+
+$filename="";
+
+foreach ($funcs as $test) {
+ $bb = $test($filename);
+ echo gettype($bb)."\n";
+ clearstatcache();
+}
+
+$filename="run-tests.php";
+
+foreach ($funcs as $test) {
+ $bb = $test($filename);
+ echo gettype($bb)."\n";
+ clearstatcache();
+}
+
+?>
--EXPECT--
-bool(false)
-bool(false)
-bool(false)
-bool(false)
-bool(false)
-bool(true)
-bool(true)
-bool(true)
-bool(true)
-bool(true)
+boolean
+boolean
+boolean
+boolean
+boolean
+boolean
+boolean
+boolean
+boolean
+boolean