PayPal\Test\Api\CarrierAccountTest::testSerializationDeserialization PHP Méthode

testSerializationDeserialization() public méthode

Tests for Serialization and Deserialization Issues
public testSerializationDeserialization ( ) : CarrierAccount
Résultat PayPal\Api\CarrierAccount
    public function testSerializationDeserialization()
    {
        $obj = new CarrierAccount(self::getJson());
        $this->assertNotNull($obj);
        $this->assertNotNull($obj->getId());
        $this->assertNotNull($obj->getPhoneNumber());
        $this->assertNotNull($obj->getExternalCustomerId());
        $this->assertNotNull($obj->getPhoneSource());
        $this->assertNotNull($obj->getCountryCode());
        $this->assertEquals(self::getJson(), $obj->toJson());
        return $obj;
    }