/** * @depends testCreateInvoice */ public function testGetInvoiceByRefId($ret) { $key = getenv('TUNAI_APP_KEY'); $secret = getenv('TUNAI_APP_SEC'); $invoice = new Invoice($key, $secret, getenv('TUNAI_ROOT_URL')); $currentInvoiceRefId = $ret['currentInvoiceRefId']; $res = $invoice->getByRef($currentInvoiceRefId); $this->assertEquals($res->getStatusCode(), 200); }