Google\Cloud\Tests\Snippets\Datastore\BlobTest::testValue PHP Method

testValue() public method

public testValue ( )
    public function testValue()
    {
        $snippet = $this->snippetFromMethod(Blob::class, 'get');
        $snippet->addLocal('blob', $this->blob);
        $res = $snippet->invoke('value');
        $this->assertInstanceOf(StreamInterface::class, $res->returnVal());
        $this->assertEquals($this->value, (string) $res->returnVal());
    }