Google\Cloud\Tests\BigQuery\QueryResultsTest::testGetsRowsThrowsExceptionWhenQueryNotComplete PHP Method

testGetsRowsThrowsExceptionWhenQueryNotComplete() public method

    public function testGetsRowsThrowsExceptionWhenQueryNotComplete()
    {
        $this->queryData['jobComplete'] = false;
        unset($this->queryData['rows']);
        $this->connection->getQueryResults()->shouldNotBeCalled();
        $queryResults = $this->getQueryResults($this->connection, $this->queryData);
        $queryResults->rows()->next();
    }