ok

Mini Shell

Direktori : /home2/selectio/public_html/y1jobportal.in/razorpay-php-2.9.0/tests/
Upload File :
Current File : //home2/selectio/public_html/y1jobportal.in/razorpay-php-2.9.0/tests/TestCase.php

<?php

namespace Razorpay\Tests;
require_once realpath(__DIR__ . "/../vendor/autoload.php");

use Razorpay\Api\Api;
use Razorpay\Api\Request;
use PHPUnit\Framework\TestCase as PhpUnitTest;
use Dotenv\Dotenv;

if (class_exists('Dotenv'))
{
 $dotenv = Dotenv::createImmutable(__DIR__);
 $dotenv->load();
}

class TestCase extends PhpUnitTest
{
    
    public function setUp(): void
    {
        $apiKey = getenv("RAZORPAY_API_KEY") ? getenv("RAZORPAY_API_KEY") : "";
        $apiSecret = getenv("RAZORPAY_API_SECRET") ? getenv("RAZORPAY_API_SECRET") : "";
        
        $this->api = new Api( $apiKey, $apiSecret);
    }
}

Zerion Mini Shell 1.0