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

testGetsRowsWithNoResults() public method

    public function testGetsRowsWithNoResults()
    {
        $this->connection->getQueryResults()->shouldNotBeCalled();
        unset($this->queryData['rows']);
        $queryResults = $this->getQueryResults($this->connection, $this->queryData);
        $rows = iterator_to_array($queryResults->rows());
        $this->assertEmpty($rows);
    }