Google\Cloud\Tests\Datastore\EntityMapperTest::testValueObjectResourceNotEncoded PHP Method

testValueObjectResourceNotEncoded() public method

    public function testValueObjectResourceNotEncoded()
    {
        $string = 'test data';
        $stream = fopen('php://memory', 'r+');
        fwrite($stream, $string);
        rewind($stream);
        $mapper = new EntityMapper('foo', false, false);
        $res = $mapper->valueObject($stream);
        $this->assertEquals($string, $res['blobValue']);
    }