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

testSerializationDeserialization() public method

Tests for Serialization and Deserialization Issues
public testSerializationDeserialization ( ) : PayPal\Api\CartBase
return PayPal\Api\CartBase
    public function testSerializationDeserialization()
    {
        $obj = new CartBase(self::getJson());
        $this->assertNotNull($obj);
        $this->assertNotNull($obj->getReferenceId());
        $this->assertNotNull($obj->getAmount());
        $this->assertNotNull($obj->getPayee());
        $this->assertNotNull($obj->getDescription());
        $this->assertNotNull($obj->getNoteToPayee());
        $this->assertNotNull($obj->getCustom());
        $this->assertNotNull($obj->getInvoiceNumber());
        $this->assertNotNull($obj->getSoftDescriptor());
        $this->assertNotNull($obj->getSoftDescriptorCity());
        $this->assertNotNull($obj->getPaymentOptions());
        $this->assertNotNull($obj->getItemList());
        $this->assertNotNull($obj->getNotifyUrl());
        $this->assertNotNull($obj->getOrderUrl());
        $this->assertNotNull($obj->getExternalFunding());
        $this->assertEquals(self::getJson(), $obj->toJson());
        return $obj;
    }