!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:     VerifyTest.php (2.94 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

namespace Plivo\Tests\Resources;

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


/**
 * Class VerifyTest
 * @package Plivo\Tests\Resources
 */

 
class VerifyTest extends BaseTestCase {

    public function 
testInitiateVerify()
    {
        
$request = new PlivoRequest(
            
'POST',
            
'Account/MAXXXXXXXXXXXXXXXXXX/VerifiedCallerId/',
            [
                
"phone_number" => "+919999999999"
            
]);
        
$body file_get_contents(__DIR__ '/../Mocks/initiateVerifyResponse.json');

        
$this->mock(new PlivoResponse($request,200$body));
        
$actual $this->client->verifyCallerId->initiate("+919999999999");
        
$this->assertRequest($request);
        
self::assertNotNull($actual);
    }

    public function 
testVerify()
    {   
        
$verificationUuid '605c75f2-02b6-4cb8-883d-69cf37b21e5a';
        
$otp "999999";
        
$request = new PlivoRequest(
            
'POST',
            
'Account/MAXXXXXXXXXXXXXXXXXX/VerifiedCallerId/'.$verificationUuid.'/',
            [
                
"otp" => "999999"
            
]);
        
$body file_get_contents(__DIR__ '/../Mocks/verifyCallerIdResponse.json');

        
$this->mock(new PlivoResponse($request,200$body));
        
$actual $this->client->verifyCallerId->verify($verificationUuid,$otp);
        
self::assertNotNull($actual);
    }

    public function 
testUpdateVerifiedCallerId()
    {   
        
$phoneNumber "+919999999999";
        
$request = new PlivoRequest(
            
'POST',
            
'Account/MAXXXXXXXXXXXXXXXXXX/VerifiedCallerId/'.$phoneNumber.'/',
            [
                
"alias" => "test-2"
            
]);
        
$body file_get_contents(__DIR__ '/../Mocks/updateVerifiedCallerIdResponse.json');

        
$this->mock(new PlivoResponse($request,200$body));
        
$actual $this->client->verifyCallerId->updateVerifiedCallerId($phoneNumber,["alias" => "test"]);
        
self::assertNotNull($actual);
    }

    public function 
testGetVerifiedCallerId()
    {
        
$phoneNumber "+919999999999";
        
$request = new PlivoRequest(
            
'GET',
            
'Account/MAXXXXXXXXXXXXXXXXXX/VerifiedCallerId/'.$phoneNumber.'/');
        
$body file_get_contents(__DIR__ '/../Mocks/updateVerifiedCallerIdResponse.json');
        
$this->mock(new PlivoResponse($request,200$body));
        
$actual $this->client->verifyCallerId->getVerifiedCallerId($phoneNumber);
        
self::assertNotNull($actual);
    }

    public function 
testListVerifiedCallerId()
    {
        
$request = new PlivoRequest(
            
'GET',
            
'Account/MAXXXXXXXXXXXXXXXXXX/VerifiedCallerId/');
        
$body file_get_contents(__DIR__ '/../Mocks/listVerifiedCallerIdResponse.json');
        
$this->mock(new PlivoResponse($request,200$body));
        
$actual $this->client->verifyCallerId->listVerifiedCallerIds();
        
$this->assertRequest($request);
        
self::assertNotNull($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 ]--