Gotcha - In PHP Using foreach on an object that does NOT implement the iterator interface does NOT throw a notice or error
In PHP Using foreach on an object that does NOT implement the iterator interface does NOT throw an error or even an E_NOTICE.
foreach($IteratorObj as $entityObj) { $this->assertIsA($entityObj, ‘DomainEntity’); }
I thought it would throw something - it does not.
That’s all.
