1--TEST--
2SPL: SplCachingIterator, Test method to convert current element to string
3--CREDITS--
4Chris Scott chris.scott@nstein.com
5#testfest London 2009-05-09
6--FILE--
7<?php
8
9$ai = new ArrayIterator(array(new stdClass(), new stdClass()));
10$ci = new CachingIterator($ai);
11var_dump(
12$ci->__toString() // if conversion to string is done by echo, for example, an exeption is thrown. Invoking __toString explicitly covers different code.
13);
14?>
15--EXPECTF--
16string(0) ""
17