/**
  * @dataProvider providerFormatReloadable
  */
 public function testFormatReloadable($input, $expected)
 {
     $this->assertEquals($expected, Litle_Palorus_Helper_Data::formatReloadable($input));
 }
 static function _getTxnIdHtml($txnType, $method, $url, $litleTxnId)
 {
     $litleTxnIdOrig = $litleTxnId;
     if ($method != 'creditcard' && $method != 'lecheck') {
         return null;
     }
     if ($txnType == 'authorization') {
         if ($method == 'lecheck') {
             $litleTxnType = 'echeck/verification';
         } else {
             $litleTxnType = 'authorization';
         }
     } else {
         if ($txnType == 'capture') {
             if ($method == 'lecheck') {
                 $litleTxnType = 'echeck/deposit';
             } else {
                 $litleTxnType = 'deposit';
             }
         } else {
             if ($txnType == 'refund') {
                 if ($method == 'lecheck') {
                     $litleTxnType = 'echeck/refund';
                 } else {
                     $litleTxnType = 'refund';
                 }
             } else {
                 if ($txnType == 'void') {
                     if (preg_match("/(\\d{18})-void/", $litleTxnId, $matches)) {
                         $litleTxnId = $matches[1];
                         $litleTxnType = 'authorization/reversal';
                     } else {
                         return null;
                     }
                 }
             }
         }
     }
     //$baseUrl = Mage::helper("palorus")->getBaseUrl($url);
     $helper = new Litle_Palorus_Helper_Data();
     $baseUrl = $helper->getBaseUrlFrom($url);
     return "<a href='{$baseUrl}/ui/reports/payments/{$litleTxnType}/{$litleTxnId}'>{$litleTxnIdOrig}</a>";
 }