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