Lines Matching refs:ar
6 function test($ar, $flags)
9 $it = new CachingIterator($ar, 0);
49 $ar = new MyArrayIterator(array(1, 2, 3));
51 test($ar, CachingIterator::CALL_TOSTRING);
52 test($ar, CachingIterator::TOSTRING_USE_KEY);
53 test($ar, CachingIterator::TOSTRING_USE_CURRENT);
55 $ar = new MyArrayIterator(array(new MyItem(1), new MyItem(2), new MyItem(3)));
57 test($ar, CachingIterator::TOSTRING_USE_INNER);
58 test($ar, CachingIterator::CALL_TOSTRING | CachingIterator::TOSTRING_USE_KEY);
59 test($ar, CachingIterator::CALL_TOSTRING | CachingIterator::TOSTRING_USE_CURRENT);
60 test($ar, CachingIterator::CALL_TOSTRING | CachingIterator::TOSTRING_USE_INNER);
61 test($ar, CachingIterator::TOSTRING_USE_KEY | CachingIterator::TOSTRING_USE_CURRENT);
62 test($ar, CachingIterator::TOSTRING_USE_KEY | CachingIterator::TOSTRING_USE_INNER);
67 $it = new CachingIterator($ar, CachingIterator::CALL_TOSTRING);
76 $it = new CachingIterator($ar, CachingIterator::TOSTRING_USE_INNER);