summaryrefslogtreecommitdiff
path: root/ext/zlib/tests/zlib_scheme_stat_basic.phpt
diff options
context:
space:
mode:
authorDave Kelsey <dkelsey@php.net>2009-01-21 15:24:11 (GMT)
committerDave Kelsey <dkelsey@php.net>2009-01-21 15:24:11 (GMT)
commitdf3fa8ed4b3527e33b0f790b4d7f802034b6b6d0 (patch)
treeedc8a59c2c5e3f1ab63ecdf086a3f84f2077dfa1 /ext/zlib/tests/zlib_scheme_stat_basic.phpt
parent6b94439d17f6b7b5c76d122115074a34e17d52de (diff)
downloadphp-df3fa8ed4b3527e33b0f790b4d7f802034b6b6d0.tar.gz
new tests for zlib extension, tested on windows, linux and linux64
Diffstat (limited to 'ext/zlib/tests/zlib_scheme_stat_basic.phpt')
-rw-r--r--ext/zlib/tests/zlib_scheme_stat_basic.phpt22
1 files changed, 22 insertions, 0 deletions
diff --git a/ext/zlib/tests/zlib_scheme_stat_basic.phpt b/ext/zlib/tests/zlib_scheme_stat_basic.phpt
new file mode 100644
index 0000000..10cd9a4
--- /dev/null
+++ b/ext/zlib/tests/zlib_scheme_stat_basic.phpt
@@ -0,0 +1,22 @@
+--TEST--
+Test compress.zlib:// scheme with the unlink function
+--SKIPIF--
+<?php
+if (!extension_loaded("zlib")) {
+ print "skip - ZLIB extension not loaded";
+}
+?>
+--FILE--
+<?php
+$inputFileName = dirname(__FILE__)."/004.txt.gz";
+$srcFile = "compress.zlib://$inputFileName";
+stat($srcFile);
+lstat($srcFile);
+?>
+===DONE===
+--EXPECTF--
+
+Warning: stat(): stat failed for compress.zlib://%s/004.txt.gz in %s on line %d
+
+Warning: lstat(): Lstat failed for compress.zlib://%s/004.txt.gz in %s on line %d
+===DONE=== \ No newline at end of file