PayPal\Test\Api\FundingInstrumentTest::testSerializationDeserialization PHP Метод

testSerializationDeserialization() публичный Метод

Tests for Serialization and Deserialization Issues
public testSerializationDeserialization ( ) : FundingInstrument
Результат PayPal\Api\FundingInstrument
    public function testSerializationDeserialization()
    {
        $obj = new FundingInstrument(self::getJson());
        $this->assertNotNull($obj);
        $this->assertNotNull($obj->getCreditCard());
        $this->assertNotNull($obj->getCreditCardToken());
        $this->assertNotNull($obj->getPaymentCard());
        $this->assertNotNull($obj->getBankAccount());
        $this->assertNotNull($obj->getBankAccountToken());
        $this->assertNotNull($obj->getCredit());
        $this->assertNotNull($obj->getIncentive());
        $this->assertNotNull($obj->getExternalFunding());
        $this->assertNotNull($obj->getCarrierAccountToken());
        $this->assertNotNull($obj->getCarrierAccount());
        $this->assertNotNull($obj->getPrivateLabelCard());
        $this->assertNotNull($obj->getBilling());
        $this->assertEquals(self::getJson(), $obj->toJson());
        return $obj;
    }