Google\Cloud\Tests\Snippets\Datastore\BlobTest::testValue PHP Méthode

testValue() public méthode

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());
    }