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

testSerializationDeserialization() public method

Tests for Serialization and Deserialization Issues
public testSerializationDeserialization ( ) : PayoutBatchHeader
return PayPal\Api\PayoutBatchHeader
    public function testSerializationDeserialization()
    {
        $obj = new PayoutBatchHeader(self::getJson());
        $this->assertNotNull($obj);
        $this->assertNotNull($obj->getPayoutBatchId());
        $this->assertNotNull($obj->getBatchStatus());
        $this->assertNotNull($obj->getTimeCreated());
        $this->assertNotNull($obj->getTimeCompleted());
        $this->assertNotNull($obj->getSenderBatchHeader());
        $this->assertNotNull($obj->getAmount());
        $this->assertNotNull($obj->getFees());
        $this->assertNotNull($obj->getErrors());
        $this->assertNotNull($obj->getLinks());
        $this->assertEquals(self::getJson(), $obj->toJson());
        return $obj;
    }