Lines Matching refs:ar
6 function test($ar, $flags)
9 $it = new CachingIterator($ar, 0);
46 $ar = new MyArrayIterator(array(1, 2, 3));
48 test($ar, CachingIterator::CALL_TOSTRING);
49 test($ar, CachingIterator::TOSTRING_USE_KEY);
50 test($ar, CachingIterator::TOSTRING_USE_CURRENT);
52 $ar = new MyArrayIterator(array(new MyItem(1), new MyItem(2), new MyItem(3)));
54 test($ar, CachingIterator::TOSTRING_USE_INNER);
55 test($ar, CachingIterator::CALL_TOSTRING | CachingIterator::TOSTRING_USE_KEY);
56 test($ar, CachingIterator::CALL_TOSTRING | CachingIterator::TOSTRING_USE_CURRENT);
57 test($ar, CachingIterator::CALL_TOSTRING | CachingIterator::TOSTRING_USE_INNER);
58 test($ar, CachingIterator::TOSTRING_USE_KEY | CachingIterator::TOSTRING_USE_CURRENT);
59 test($ar, CachingIterator::TOSTRING_USE_KEY | CachingIterator::TOSTRING_USE_INNER);
64 $it = new CachingIterator($ar, CachingIterator::CALL_TOSTRING);
73 $it = new CachingIterator($ar, CachingIterator::TOSTRING_USE_INNER);