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

testSerializationDeserialization() public method

Tests for Serialization and Deserialization Issues
public testSerializationDeserialization ( ) : Templates
return PayPal\Api\Templates
    public function testSerializationDeserialization()
    {
        $obj = new Templates(self::getJson());
        $this->assertNotNull($obj);
        $this->assertNotNull($obj->getAddresses());
        $this->assertNotNull($obj->getEmails());
        $this->assertNotNull($obj->getPhones());
        $this->assertNotNull($obj->getTemplates());
        $this->assertNotNull($obj->getLinks());
        $this->assertEquals(self::getJson(), $obj->toJson());
        return $obj;
    }