PayPal\Test\Api\ErrorTest::testSerializationDeserialization PHP Метод

testSerializationDeserialization() публичный Метод

Tests for Serialization and Deserialization Issues
public testSerializationDeserialization ( ) : Error
Результат PayPal\Api\Error
    public function testSerializationDeserialization()
    {
        $obj = new Error(self::getJson());
        $this->assertNotNull($obj);
        $this->assertNotNull($obj->getName());
        $this->assertNotNull($obj->getPurchaseUnitReferenceId());
        $this->assertNotNull($obj->getMessage());
        $this->assertNotNull($obj->getCode());
        $this->assertNotNull($obj->getDetails());
        $this->assertNotNull($obj->getProcessorResponse());
        $this->assertNotNull($obj->getFmfDetails());
        $this->assertNotNull($obj->getInformationLink());
        $this->assertNotNull($obj->getDebugId());
        $this->assertNotNull($obj->getLinks());
        $this->assertEquals(self::getJson(), $obj->toJson());
        return $obj;
    }