PayPal\Test\Api\WebhookTest::getObject PHP Method

getObject() public static method

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

Usage Example

Example #1
0
 /**
  * @depends testSerializationDeserialization
  * @param WebhookList $obj
  */
 public function testGetters($obj)
 {
     $this->assertEquals($obj->getWebhooks(), WebhookTest::getObject());
 }