Google\Cloud\Tests\Snippets\BigQuery\BigQueryClientTest::testBytes PHP Method

testBytes() public method

public testBytes ( )
    public function testBytes()
    {
        $snippet = $this->snippetFromMethod(BigQueryClient::class, 'bytes');
        $snippet->addLocal('bigQuery', $this->client);
        $this->client->setConnection($this->connection->reveal());
        $res = $snippet->invoke('bytes');
        $this->assertInstanceOf(Bytes::class, $res->returnVal());
    }