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

testSerializationDeserialization() public method

Tests for Serialization and Deserialization Issues
public testSerializationDeserialization ( ) : PayPal\Api\PaymentCardToken
return PayPal\Api\PaymentCardToken
    public function testSerializationDeserialization()
    {
        $obj = new PaymentCardToken(self::getJson());
        $this->assertNotNull($obj);
        $this->assertNotNull($obj->getPaymentCardId());
        $this->assertNotNull($obj->getExternalCustomerId());
        $this->assertNotNull($obj->getLast4());
        $this->assertNotNull($obj->getType());
        $this->assertNotNull($obj->getExpireMonth());
        $this->assertNotNull($obj->getExpireYear());
        $this->assertEquals(self::getJson(), $obj->toJson());
        return $obj;
    }