public function testExceptionIsThrownInHashIterator() { $this->setExpectedException('DomainException', 'Callback exception'); map($this->hashIterator, [$this, 'exception']); }