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

getObject() public static method

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

Usage Example

Example #1
0
 /**
  * @depends testSerializationDeserialization
  * @param RelatedResources $obj
  */
 public function testGetters($obj)
 {
     $this->assertEquals($obj->getSale(), SaleTest::getObject());
     $this->assertEquals($obj->getAuthorization(), AuthorizationTest::getObject());
     $this->assertEquals($obj->getOrder(), OrderTest::getObject());
     $this->assertEquals($obj->getCapture(), CaptureTest::getObject());
     $this->assertEquals($obj->getRefund(), RefundTest::getObject());
 }
All Usage Examples Of PayPal\Test\Api\CaptureTest::getObject