!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/sms.picotech.app/public_html/vendor/coinpaymentsnet/coinpayments-php/tests/   drwxrwxr-x
Free 28.21 GB of 117.98 GB (23.91%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     CoinpaymentsCurlRequestTest.php (2.1 KB)      -rw-rw-r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
require('../src/CoinpaymentsCurlRequest.php');
require(
'../src/keys.php');

use 
PHPUnit\Framework\TestCase;

class 
CoinPaymentsCurlRequestTest extends TestCase
{
    private 
$curl_test;
    private 
$private_key API_PRIVATE_KEY;
    private 
$public_key API_PUBLIC_KEY;
    private 
$format 'json';

    
/**
     * Method called before every test.
     */
    
protected function setUp()
    {
        
$this->curl_test = new CoinpaymentsCurlRequest($this->private_key$this->public_key$this->format);
    }

    
/**
     * @covers CoinpaymentsCurlRequest::__construct
     */
    
public function testInit()
    {
        
$this->assertInstanceOf(CoinpaymentsCurlRequest::class, $this->curl_test);
        
$this->assertObjectHasAttribute('private_key'$this->curl_test);
        
$this->assertObjectHasAttribute('public_key'$this->curl_test);
        
$this->assertObjectHasAttribute('format'$this->curl_test);
    }

    
/**
     * @covers CoinpaymentsCurlRequest::__construct
     * @expectedException ArgumentCountError
     */
    
public function testEmptyInit()
    {
        
$this->empty_curl_test = new CoinpaymentsCurlRequest();
    }

    
/**
     * @covers CoinpaymentsCurlRequest::__construct
     * @expectedException ArgumentCountError
     */
    
public function testPartialInit()
    {
        
$this->empty_curl_test = new CoinpaymentsCurlRequest('key');
    }

    
/**
     * @covers CoinpaymentsCurlRequest::execute
     * @expectedException ArgumentCountError
     */
    
public function testEmptyExecute()
    {
        
$response $this->curl_test->execute();
    }

    
/**
     * @covers CoinpaymentsCurlRequest::execute
     */
    
public function testExecute()
    {
        
$response $this->curl_test->execute('get_basic_info');
        
$this->assertArrayHasKey('error'$response);
        
$this->assertEquals('ok'$response['error']);
        
$this->assertArrayHasKey('result'$response);
        
$this->assertNotEmpty($response['result']);
    }

    
/**
     * Method called after every test to set API handler to null.
     */
    
public function tearDown()
    {
        
$this->curl_test 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.0042 ]--