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

testReturnsInt64AsObject() public method

    public function testReturnsInt64AsObject()
    {
        $int = '914241242';
        $mapper = new EntityMapper('foo', true, true);
        $res = $mapper->convertValue('integerValue', $int);
        $this->assertInstanceOf(Int64::class, $res);
        $this->assertEquals($int, $res->get());
    }