public function testExceptionIsThrownInHash() { $this->setExpectedException('DomainException', 'Callback exception'); reindex($this->hash, [$this, 'exception']); }