Adding php behavioral - iterator impl and test