Esempio n. 1
0
 /**
  * @depends testCreateInvoice
  */
 public function testGetInvoiceById($ret)
 {
     $key = getenv('TUNAI_APP_KEY');
     $secret = getenv('TUNAI_APP_SEC');
     $invoice = new Invoice($key, $secret, getenv('TUNAI_ROOT_URL'));
     $currentInvoiceId = $ret['currentInvoiceId'];
     $res = $invoice->getById($currentInvoiceId);
     $this->assertEquals($res->getStatusCode(), 200);
 }