public function testQRCode($invoice) { $result = Invoice::qrCode($invoice->getId(), array(), $this->apiContext, $this->mockPayPalRestCall); $this->assertNotNull($result); $this->assertNotNull($result->getImage()); }