getJson() public static method

Gets Json String of Object Cost
public static getJson ( ) : string
return string
Example #1
0
 /**
  * @dataProvider mockProvider
  * @param Invoice $obj
  */
 public function testGenerateNumber($obj, $mockApiContext)
 {
     $mockPPRestCall = $this->getMockBuilder('\\PayPal\\Transport\\PayPalRestCall')->disableOriginalConstructor()->getMock();
     $mockPPRestCall->expects($this->any())->method('execute')->will($this->returnValue(InvoiceNumberTest::getJson()));
     $result = $obj->generateNumber($mockApiContext, $mockPPRestCall);
     $this->assertNotNull($result);
 }