Lines Matching refs:ar
6 function test($ar, $flags)
9 $it = new CachingIterator($ar, 0);
55 $ar = new MyArrayIterator(array(1, 2, 3));
57 test($ar, CachingIterator::CALL_TOSTRING);
58 test($ar, CachingIterator::TOSTRING_USE_KEY);
59 test($ar, CachingIterator::TOSTRING_USE_CURRENT);
61 $ar = new MyArrayIterator(array(new MyItem(1), new MyItem(2), new MyItem(3)));
63 test($ar, CachingIterator::TOSTRING_USE_INNER);
64 test($ar, CachingIterator::CALL_TOSTRING | CachingIterator::TOSTRING_USE_KEY);
65 test($ar, CachingIterator::CALL_TOSTRING | CachingIterator::TOSTRING_USE_CURRENT);
66 test($ar, CachingIterator::CALL_TOSTRING | CachingIterator::TOSTRING_USE_INNER);
67 test($ar, CachingIterator::TOSTRING_USE_KEY | CachingIterator::TOSTRING_USE_CURRENT);
68 test($ar, CachingIterator::TOSTRING_USE_KEY | CachingIterator::TOSTRING_USE_INNER);
73 $it = new CachingIterator($ar, CachingIterator::CALL_TOSTRING);
82 $it = new CachingIterator($ar, CachingIterator::TOSTRING_USE_INNER);