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

testSerializationDeserialization() public method

Tests for Serialization and Deserialization Issues
public testSerializationDeserialization ( ) : PayPal\Api\Terms
return PayPal\Api\Terms
    public function testSerializationDeserialization()
    {
        $obj = new Terms(self::getJson());
        $this->assertNotNull($obj);
        $this->assertNotNull($obj->getId());
        $this->assertNotNull($obj->getType());
        $this->assertNotNull($obj->getMaxBillingAmount());
        $this->assertNotNull($obj->getOccurrences());
        $this->assertNotNull($obj->getAmountRange());
        $this->assertNotNull($obj->getBuyerEditable());
        $this->assertEquals(self::getJson(), $obj->toJson());
        return $obj;
    }