public testSerializationDeserialization ( ) : PayPal\Api\PrivateLabelCard | ||
Результат | PayPal\Api\PrivateLabelCard |
public function testSerializationDeserialization()
{
$obj = new PrivateLabelCard(self::getJson());
$this->assertNotNull($obj);
$this->assertNotNull($obj->getId());
$this->assertNotNull($obj->getCardNumber());
$this->assertNotNull($obj->getIssuerId());
$this->assertNotNull($obj->getIssuerName());
$this->assertNotNull($obj->getImageKey());
$this->assertEquals(self::getJson(), $obj->toJson());
return $obj;
}