Google\Cloud\Tests\BigQuery\ValueMapperTest::bigQueryValueProvider PHP Method

bigQueryValueProvider() public method

    public function bigQueryValueProvider()
    {
        return [[['v' => 'true'], ['type' => 'BOOLEAN'], true], [['v' => '123'], ['type' => 'INTEGER'], 123], [['v' => '12.3'], ['type' => 'FLOAT'], 12.3], [['v' => 'Hello'], ['type' => 'STRING'], 'Hello'], [['v' => '1980-01-01'], ['type' => 'DATE'], new Date(new \DateTime('1980-01-01'))], [['v' => '1980-01-01 12:15:15'], ['type' => 'DATETIME'], new \DateTime('1980-01-01 12:15:15')], [['v' => '12:15:15'], ['type' => 'TIME'], new Time(new \DateTime('12:15:15'))], [['v' => '1438712914'], ['type' => 'TIMESTAMP'], new Timestamp(new \DateTime('2015-08-04 18:28:34Z'))], [['v' => ['f' => [['v' => 'Hello'], ['v' => 'World']]]], ['type' => 'RECORD', 'fields' => [['name' => 'Say', 'type' => 'STRING'], ['name' => 'To the', 'type' => 'STRING']]], ['Say' => 'Hello', 'To the' => 'World']], [['v' => [['v' => 'Hello'], ['v' => 'World']]], ['type' => 'STRING', 'mode' => 'REPEATED'], ['Hello', 'World']], [['v' => null], ['type' => 'STRING', 'mode' => 'NULLABLE'], null]];
    }