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

testSerializationDeserialization() public method

Tests for Serialization and Deserialization Issues
public testSerializationDeserialization ( ) : FundingDetail
return PayPal\Api\FundingDetail
    public function testSerializationDeserialization()
    {
        $obj = new FundingDetail(self::getJson());
        $this->assertNotNull($obj);
        $this->assertNotNull($obj->getClearingTime());
        $this->assertNotNull($obj->getPaymentHoldDate());
        $this->assertNotNull($obj->getPaymentDebitDate());
        $this->assertNotNull($obj->getProcessingType());
        $this->assertEquals(self::getJson(), $obj->toJson());
        return $obj;
    }