getJson() public static méthode

Gets Json String of Object PaymentHistory
public static getJson ( ) : string
Résultat string
Exemple #1
0
 /**
  * @dataProvider mockProvider
  * @param Payment $obj
  */
 public function testList($obj, $mockApiContext)
 {
     $mockPPRestCall = $this->getMockBuilder('\\PayPal\\Transport\\PayPalRestCall')->disableOriginalConstructor()->getMock();
     $mockPPRestCall->expects($this->any())->method('execute')->will($this->returnValue(PaymentHistoryTest::getJson()));
     $params = array();
     $result = $obj->all($params, $mockApiContext, $mockPPRestCall);
     $this->assertNotNull($result);
 }