cvs: php4 /ext/standard/tests/image getimagesize_swc.phpt
| From: | Ilia Alshanetsky | Date: | Tue, 12 Nov 2002 17:47:20 +0000 |
| Subject: | cvs: php4 /ext/standard/tests/image getimagesize_swc.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-16040@lists.php.net to get a copy of this message | ||
iliaa Tue Nov 12 12:47:20 2002 EDT
Added files:
/php4/ext/standard/tests/image getimagesize_swc.phpt
Log:
Added test for swc files (compressed swf files), this must be done in a
separate test, since this test has a dependency on the zlib extension.
Index: php4/ext/standard/tests/image/getimagesize_swc.phpt
+++ php4/ext/standard/tests/image/getimagesize_swc.phpt
--TEST--
GetImageSize() for compressed swf files
--SKIPIF--
<?php
if (!defined("IMAGETYPE_SWC") || !extension_loaded('zlib')) {
die("skip zlib extension is not avaliable");
}
?>
--FILE--
<?php
var_dump(getimagesize(dirname(__FILE__) . "/test13pix.swf"));
?>
--EXPECT--
array(5) {
[0]=>
int(550)
[1]=>
int(400)
[2]=>
int(13)
[3]=>
string(24) "width="550" height="400""
["mime"]=>
string(29) "application/x-shockwave-flash"
}