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

testSerializationDeserialization() public method

Tests for Serialization and Deserialization Issues
public testSerializationDeserialization ( ) : PayPal\Api\AgreementTransaction
return PayPal\Api\AgreementTransaction
    public function testSerializationDeserialization()
    {
        $obj = new AgreementTransaction(self::getJson());
        $this->assertNotNull($obj);
        $this->assertNotNull($obj->getTransactionId());
        $this->assertNotNull($obj->getStatus());
        $this->assertNotNull($obj->getTransactionType());
        $this->assertNotNull($obj->getAmount());
        $this->assertNotNull($obj->getFeeAmount());
        $this->assertNotNull($obj->getNetAmount());
        $this->assertNotNull($obj->getPayerEmail());
        $this->assertNotNull($obj->getPayerName());
        $this->assertNotNull($obj->getTimeStamp());
        $this->assertNotNull($obj->getTimeZone());
        $this->assertEquals(self::getJson(), $obj->toJson());
        return $obj;
    }