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

testGetsRowsWithNoResults() public method

    public function testGetsRowsWithNoResults()
    {
        $this->connection->getTable(Argument::any())->willReturn($this->schemaData)->shouldBeCalledTimes(1);
        $this->connection->listTableData(Argument::any())->willReturn([])->shouldBeCalledTimes(1);
        $table = $this->getTable($this->connection);
        $rows = iterator_to_array($table->rows());
        $this->assertEmpty($rows);
    }