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

testSerializationDeserialization() public method

Tests for Serialization and Deserialization Issues
public testSerializationDeserialization ( ) : Metadata
return PayPal\Api\Metadata
    public function testSerializationDeserialization()
    {
        $obj = new Metadata(self::getJson());
        $this->assertNotNull($obj);
        $this->assertNotNull($obj->getCreatedDate());
        $this->assertNotNull($obj->getCreatedBy());
        $this->assertNotNull($obj->getCancelledDate());
        $this->assertNotNull($obj->getCancelledBy());
        $this->assertNotNull($obj->getLastUpdatedDate());
        $this->assertNotNull($obj->getLastUpdatedBy());
        $this->assertNotNull($obj->getFirstSentDate());
        $this->assertNotNull($obj->getLastSentDate());
        $this->assertNotNull($obj->getLastSentBy());
        $this->assertNotNull($obj->getPayerViewUrl());
        $this->assertEquals(self::getJson(), $obj->toJson());
        return $obj;
    }