Google\Cloud\Tests\BigQuery\BytesTest::testToString PHP Method

testToString() public method

public testToString ( )
    public function testToString()
    {
        $bytes = new Bytes($this->value);
        $expected = base64_encode($this->value);
        $this->assertEquals($expected, (string) $bytes);
        $this->assertEquals($expected, $bytes->formatAsString());
    }