Nette\SmartCachingIterator test
Two items in array
first: bool(TRUE)
last: bool(FALSE)
counter: int(1)
inner first: bool(TRUE)
inner last: bool(FALSE)
inner counter: int(1)
inner first: bool(FALSE)
inner last: bool(TRUE)
inner counter: int(2)
first: bool(FALSE)
last: bool(TRUE)
counter: int(2)
inner first: bool(TRUE)
inner last: bool(FALSE)
inner counter: int(1)
inner first: bool(FALSE)
inner last: bool(TRUE)
inner counter: int(2)
rewinding...
first: bool(TRUE)
last: bool(FALSE)
counter: int(1)
empty: bool(FALSE)
One item in array
first: bool(TRUE)
last: bool(TRUE)
counter: int(1)
rewinding...
first: bool(TRUE)
last: bool(TRUE)
counter: int(1)
empty: bool(FALSE)
Zero item in array
first: bool(FALSE)
last: bool(TRUE)
counter: int(0)
empty: bool(TRUE)