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

testSerializationDeserialization() public method

Tests for Serialization and Deserialization Issues
public testSerializationDeserialization ( ) : PaymentDetail
return PayPal\Api\PaymentDetail
    public function testSerializationDeserialization()
    {
        $obj = new PaymentDetail(self::getJson());
        $this->assertNotNull($obj);
        $this->assertNotNull($obj->getType());
        $this->assertNotNull($obj->getTransactionId());
        $this->assertNotNull($obj->getTransactionType());
        $this->assertNotNull($obj->getDate());
        $this->assertNotNull($obj->getMethod());
        $this->assertNotNull($obj->getNote());
        $this->assertNotNull($obj->getAmount());
        $this->assertEquals(self::getJson(), $obj->toJson());
        return $obj;
    }