Annotation of embedaddon/php/ext/phar/tests/phar_buildfromiterator2.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: Phar::buildFromIterator() wrong object
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: try {
11: $phar = new Phar(dirname(__FILE__) . '/buildfromiterator.phar');
12: $phar->buildFromIterator(new stdClass);
13: } catch (Exception $e) {
14: var_dump(get_class($e));
15: echo $e->getMessage() . "\n";
16: }
17: ?>
18: ===DONE===
19: --CLEAN--
20: <?php
21: unlink(dirname(__FILE__) . '/buildfromiterator.phar');
22: __HALT_COMPILER();
23: ?>
24: --EXPECTF--
25: Warning: Phar::buildFromIterator() expects parameter 1 to be Traversable, object given in %sphar_buildfromiterator2.php on line %d
26: ===DONE===
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>