public function testExceptionIsThrownWhenTryingToGetRecordOnEmptyCursor() { $this->emptyDb(); $result = $this->client->run('MATCH (n) RETURN n'); $this->setExpectedException(\RuntimeException::class); $result->firstRecord(); }