GraphAware\Neo4j\Client\Tests\Integration\ResultIntegrationTest::testExceptionIsThrownWhenTryingToGetRecordOnEmptyCursor PHP Method

testExceptionIsThrownWhenTryingToGetRecordOnEmptyCursor() public method

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