From: Greg Beaver Date: Sun, 20 Apr 2008 05:22:02 +0000 (+0000) Subject: add new test for openoffice-created zip X-Git-Tag: RELEASE_2_0_0b1~308 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4336865bb485b29c1948dcbd84805f57f9cd32df;p=php add new test for openoffice-created zip --- diff --git a/ext/phar/tests/zip/files/odt.odt b/ext/phar/tests/zip/files/odt.odt new file mode 100644 index 0000000000..527e09fefc Binary files /dev/null and b/ext/phar/tests/zip/files/odt.odt differ diff --git a/ext/phar/tests/zip/odt.phpt b/ext/phar/tests/zip/odt.phpt new file mode 100644 index 0000000000..9901c21cb7 --- /dev/null +++ b/ext/phar/tests/zip/odt.phpt @@ -0,0 +1,27 @@ +--TEST-- +Phar: test a zip archive created by openoffice +--SKIPIF-- + + +--FILE-- +isDir()) { + echo "dir " . $b->getPathName() . "\n"; + } else { + echo $b->getPathName() . "\n"; + } +} +?> +===DONE=== +--EXPECTF-- +phar://%sodt.odt%cConfigurations2%caccelerator%ccurrent.xml +phar://%sodt.odt%cMETA-INF%cmanifest.xml +phar://%sodt.odt%cThumbnails%cthumbnail.png +phar://%sodt.odt%ccontent.xml +phar://%sodt.odt%cmeta.xml +phar://%sodt.odt%cmimetype +phar://%sodt.odt%csettings.xml +phar://%sodt.odt%cstyles.xml +===DONE===