!C99Shell v. 2.1 [PHP 8 Update] [02.02.2022]!

Software: Apache/2.4.53 (Unix) OpenSSL/1.1.1o PHP/7.4.29 mod_perl/2.0.12 Perl/v5.34.1. PHP/7.4.29 

uname -a: Linux vps-2738122-x 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64 

uid=1(daemon) gid=1(daemon) grupos=1(daemon) 

Safe-mode: OFF (not secure)

/opt/apex_led/php/vendor/guzzlehttp/guzzle/tests/Exception/   drwxrwxr-x
Free 15.59 GB of 61.93 GB (25.18%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     RequestExceptionTest.php (2.93 KB)      -rwxrwxr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
namespace GuzzleHttp\Tests\Event;

use 
GuzzleHttp\Exception\RequestException;
use 
GuzzleHttp\Message\Request;
use 
GuzzleHttp\Message\Response;
use 
GuzzleHttp\Ring\Exception\ConnectException;

/**
 * @covers GuzzleHttp\Exception\RequestException
 */
class RequestExceptionTest extends \PHPUnit_Framework_TestCase
{
    public function 
testHasRequestAndResponse()
    {
        
$req = new Request('GET''/');
        
$res = new Response(200);
        
$e = new RequestException('foo'$req$res);
        
$this->assertSame($req$e->getRequest());
        
$this->assertSame($res$e->getResponse());
        
$this->assertTrue($e->hasResponse());
        
$this->assertEquals('foo'$e->getMessage());
    }

    public function 
testCreatesGenerateException()
    {
        
$e RequestException::create(new Request('GET''/'));
        
$this->assertEquals('Error completing request'$e->getMessage());
        
$this->assertInstanceOf('GuzzleHttp\Exception\RequestException'$e);
    }

    public function 
testCreatesClientErrorResponseException()
    {
        
$e RequestException::create(new Request('GET''/'), new Response(400));
        
$this->assertEquals(
            
'Client error response [url] / [status code] 400 [reason phrase] Bad Request',
            
$e->getMessage()
        );
        
$this->assertInstanceOf('GuzzleHttp\Exception\ClientException'$e);
    }

    public function 
testCreatesServerErrorResponseException()
    {
        
$e RequestException::create(new Request('GET''/'), new Response(500));
        
$this->assertEquals(
            
'Server error response [url] / [status code] 500 [reason phrase] Internal Server Error',
            
$e->getMessage()
        );
        
$this->assertInstanceOf('GuzzleHttp\Exception\ServerException'$e);
    }

    public function 
testCreatesGenericErrorResponseException()
    {
        
$e RequestException::create(new Request('GET''/'), new Response(600));
        
$this->assertEquals(
            
'Unsuccessful response [url] / [status code] 600 [reason phrase] ',
            
$e->getMessage()
        );
        
$this->assertInstanceOf('GuzzleHttp\Exception\RequestException'$e);
    }

    public function 
testHasStatusCodeAsExceptionCode() {
        
$e RequestException::create(new Request('GET''/'), new Response(442));
        
$this->assertEquals(442$e->getCode());
    }

    public function 
testWrapsRequestExceptions()
    {
        
$e = new \Exception('foo');
        
$r = new Request('GET''http://www.oo.com');
        
$ex RequestException::wrapException($r$e);
        
$this->assertInstanceOf('GuzzleHttp\Exception\RequestException'$ex);
        
$this->assertSame($e$ex->getPrevious());
    }

    public function 
testWrapsConnectExceptions()
    {
        
$e = new ConnectException('foo');
        
$r = new Request('GET''http://www.oo.com');
        
$ex RequestException::wrapException($r$e);
        
$this->assertInstanceOf('GuzzleHttp\Exception\ConnectException'$ex);
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.1 [PHP 8 Update] [02.02.2022] maintained byC99Shell Github | Generation time: 0.3944 ]--