getJson() public static method

Gets Json String of Object PlanList
public static getJson ( ) : string
return string
Ejemplo n.º 1
0
 /**
  * @dataProvider mockProvider
  * @param Plan $obj
  */
 public function testList($obj, $mockApiContext)
 {
     $mockPayPalRestCall = $this->getMockBuilder('\\PayPal\\Transport\\PayPalRestCall')->disableOriginalConstructor()->getMock();
     $mockPayPalRestCall->expects($this->any())->method('execute')->will($this->returnValue(PlanListTest::getJson()));
     $params = ParamsTest::getObject();
     $result = $obj->all($params, $mockApiContext, $mockPayPalRestCall);
     $this->assertNotNull($result);
 }