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

testGetsRowsWithoutToken() public method

    public function testGetsRowsWithoutToken()
    {
        $this->connection->getTable(Argument::any())->willReturn($this->schemaData)->shouldBeCalledTimes(1);
        $this->connection->listTableData(Argument::any())->willReturn($this->rowData)->shouldBeCalledTimes(1);
        $table = $this->getTable($this->connection);
        $rows = iterator_to_array($table->rows());
        $this->assertEquals($this->rowData['rows'][0]['f'][0]['v'], $rows[0]['first_name']);
    }