function testStatusHelper()
 {
     $r = $this->response('debit_sale.xml');
     $t = new Transaction($r);
     $this->assertEqual($t->status, Transaction::STATUS_APPROVED);
     $this->assertTrue($t->isApproved());
     $r['status'] = Transaction::STATUS_DECLINED;
     $t = new Transaction($r);
     $this->assertTrue($t->isDeclined());
     $r['status'] = Transaction::STATUS_PENDING;
     $t = new Transaction($r);
     $this->assertTrue($t->isPending());
     $r['status'] = Transaction::STATUS_PENDING_ASYNC;
     $t = new Transaction($r);
     $this->assertTrue($t->isPendingAsync());
     $r['status'] = Transaction::STATUS_ERROR;
     $t = new Transaction($r);
     $this->assertTrue($t->isError());
     $r['status'] = Transaction::STATUS_VOIDED;
     $t = new Transaction($r);
     $this->assertTrue($t->isVoided());
     $r['status'] = Transaction::STATUS_CHARGEBACKED;
     $t = new Transaction($r);
     $this->assertTrue($t->isChargebacked());
     $r['status'] = Transaction::STATUS_REFUNDED;
     $t = new Transaction($r);
     $this->assertTrue($t->isRefunded());
     $r['status'] = Transaction::STATUS_CHARGEBACK_REVERSED;
     $t = new Transaction($r);
     $this->assertTrue($t->isChargebackReversed());
     $r['status'] = Transaction::STATUS_PRE_ARBITRATED;
     $t = new Transaction($r);
     $this->assertTrue($t->isPreArbitrated());
     $r['status'] = Transaction::STATUS_REJECTED;
     $t = new Transaction($r);
     $this->assertTrue($t->isRejected());
     $r['status'] = Transaction::STATUS_CAPTURED;
     $t = new Transaction($r);
     $this->assertTrue($t->isCaptured());
 }