1--TEST--
2Phar::buildFromIterator() wrong object
3--SKIPIF--
4<?php if (!extension_loaded("phar")) die("skip"); ?>
5--INI--
6phar.require_hash=0
7phar.readonly=0
8--FILE--
9<?php
10try {
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
21unlink(dirname(__FILE__) . '/buildfromiterator.phar');
22__HALT_COMPILER();
23?>
24--EXPECTF--
25Warning: Phar::buildFromIterator() expects parameter 1 to be Traversable, object given in %sphar_buildfromiterator2.php on line %d
26===DONE===
27