Annotation of embedaddon/php/ext/phar/tests/phar_setalias.phpt, revision 1.1

1.1     ! misho       1: --TEST--
        !             2: Phar::setAlias()
        !             3: --SKIPIF--
        !             4: <?php if (!extension_loaded("phar")) die("skip"); ?>
        !             5: --INI--
        !             6: phar.require_hash=0
        !             7: phar.readonly=0
        !             8: --FILE--
        !             9: <?php
        !            10: $fname = dirname(__FILE__) . '/' . basename(__FILE__, '.php') . '.phar.php';
        !            11: $pname = 'phar://' . $fname;
        !            12: $file = '<?php echo "first stub\n"; __HALT_COMPILER(); ?>';
        !            13: 
        !            14: $files = array();
        !            15: $files['a'] = 'a';
        !            16: $files['b'] = 'b';
        !            17: $files['c'] = 'c';
        !            18: 
        !            19: include 'files/phar_test.inc';
        !            20: 
        !            21: $phar = new Phar($fname);
        !            22: echo $phar->getAlias() . "\n";
        !            23: $phar->setAlias('test');
        !            24: echo $phar->getAlias() . "\n";
        !            25: ?>
        !            26: ===DONE===
        !            27: --CLEAN--
        !            28: <?php 
        !            29: unlink(dirname(__FILE__) . '/' . basename(__FILE__, '.clean.php') . '.phar.php');
        !            30: unlink(dirname(__FILE__) . '/' . basename(__FILE__, '.clean.php') . '.phartmp.php');
        !            31: __HALT_COMPILER();
        !            32: ?>
        !            33: --EXPECT--
        !            34: hio
        !            35: test
        !            36: ===DONE===

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>