PayPal\Test\Api\WebhookEventTest::getObject PHP 메소드

getObject() 공개 정적인 메소드

Gets Object Instance with Json data filled in
public static getObject ( ) : WebhookEvent
리턴 PayPal\Api\WebhookEvent
    public static function getObject()
    {
        return new WebhookEvent(self::getJson());
    }

Usage Example

 /**
  * @depends testSerializationDeserialization
  * @param VerifyWebhookSignature $obj
  */
 public function testGetters($obj)
 {
     $this->assertEquals($obj->getAuthAlgo(), "TestSample");
     $this->assertEquals($obj->getCertUrl(), "http://www.google.com");
     $this->assertEquals($obj->getTransmissionId(), "TestSample");
     $this->assertEquals($obj->getTransmissionSig(), "TestSample");
     $this->assertEquals($obj->getTransmissionTime(), "TestSample");
     $this->assertEquals($obj->getWebhookId(), "TestSample");
     $this->assertEquals($obj->getWebhookEvent(), WebhookEventTest::getObject());
 }
All Usage Examples Of PayPal\Test\Api\WebhookEventTest::getObject