PayPal\Test\Api\PotentialPayerInfoTest::testSerializationDeserialization PHP 메소드

testSerializationDeserialization() 공개 메소드

Tests for Serialization and Deserialization Issues
public testSerializationDeserialization ( ) : PotentialPayerInfo
리턴 PayPal\Api\PotentialPayerInfo
    public function testSerializationDeserialization()
    {
        $obj = new PotentialPayerInfo(self::getJson());
        $this->assertNotNull($obj);
        $this->assertNotNull($obj->getEmail());
        $this->assertNotNull($obj->getExternalRememberMeId());
        $this->assertNotNull($obj->getAccountNumber());
        $this->assertNotNull($obj->getBillingAddress());
        $this->assertEquals(self::getJson(), $obj->toJson());
        return $obj;
    }