xref: /PHP-5.6/ext/phar/tests/zip/zlib.phpt (revision eb41e0d6)
1--TEST--
2Phar: process zlib-compressed zip alias
3--SKIPIF--
4<?php if (!extension_loaded("phar")) die("skip"); ?>
5<?php if (!extension_loaded("spl")) die("skip SPL not available"); ?>
6<?php if (!extension_loaded("zlib")) die("skip zlib not available"); ?>
7--FILE--
8<?php
9try {
10	$a = new Phar(dirname(__FILE__) . '/files/zlib_alias.phar.zip');
11	var_dump($a->getAlias());
12} catch (Exception $e) {
13	echo $e->getMessage() . "\n";
14}
15?>
16===DONE===
17--EXPECT--
18string(175) "hitheresuperlongzipistoostupidtodowhatIsaysoIhavetousethisridiculouslylongaliasbecauseitisstupiddidImentionthatalreadythemadnessdoesnotstopIhateinfozipIhateinfozipIhateinfozip"
19===DONE===
20