PayPal\Test\Api\HyperSchemaTest::testSerializationDeserialization PHP Method

testSerializationDeserialization() public method

Tests for Serialization and Deserialization Issues
public testSerializationDeserialization ( ) : PayPal\Api\HyperSchema
return PayPal\Api\HyperSchema
    public function testSerializationDeserialization()
    {
        $obj = new HyperSchema(self::getJson());
        $this->assertNotNull($obj);
        $this->assertNotNull($obj->getLinks());
        $this->assertNotNull($obj->getFragmentResolution());
        $this->assertNotNull($obj->getReadonly());
        $this->assertNotNull($obj->getContentEncoding());
        $this->assertNotNull($obj->getPathStart());
        $this->assertNotNull($obj->getMediaType());
        $this->assertEquals(self::getJson(), $obj->toJson());
        return $obj;
    }