public function testExceptionIsThrownInCollection() { $this->setExpectedException('DomainException', 'Callback exception'); tail($this->listIterator, [$this, 'exception']); }