getJson() public static méthode

Gets Json String of Object Capture
public static getJson ( ) : string
Résultat string
 /**
  * @dataProvider mockProvider
  * @param Capture $obj
  */
 public function testGet($obj, $mockApiContext)
 {
     $mockPPRestCall = $this->getMockBuilder('\\PayPal\\Transport\\PayPalRestCall')->disableOriginalConstructor()->getMock();
     $mockPPRestCall->expects($this->any())->method('execute')->will($this->returnValue(CaptureTest::getJson()));
     $result = $obj->get("captureId", $mockApiContext, $mockPPRestCall);
     $this->assertNotNull($result);
 }
 /**
  * Gets Json String of Object RelatedResources
  *
  * @return string
  */
 public static function getJson()
 {
     return '{"sale":' . SaleTest::getJson() . ',"authorization":' . AuthorizationTest::getJson() . ',"order":' . OrderTest::getJson() . ',"capture":' . CaptureTest::getJson() . ',"refund":' . RefundTest::getJson() . '}';
 }