1
0

repo initialized with test cases

This commit is contained in:
moizgillani
2024-09-06 15:38:17 +05:00
parent c9cb1ad04a
commit b20aa829db
754 changed files with 76684 additions and 1 deletions

View File

@@ -0,0 +1,36 @@
<?php
declare(strict_types=1);
/*
* PayPalRESTAPIsLib
*
* This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
*/
namespace PayPalRESTAPIsLib\Tests\Controllers;
use Core\TestCase\CoreTestCase;
use Core\Types\CallbackCatcher;
use PayPalRESTAPIsLib\PayPalRESTAPIsClient;
use PayPalRESTAPIsLib\Tests\ClientFactory;
use PHPUnit\Framework\TestCase;
class BaseTestController extends TestCase
{
/**
* @var CallbackCatcher Callback
*/
protected static $callbackCatcher;
protected function newTestCase($result): CoreTestCase
{
return new CoreTestCase($this, self::$callbackCatcher, $result);
}
protected static function getClient(): PayPalRESTAPIsClient
{
self::$callbackCatcher = new CallbackCatcher();
return ClientFactory::create(self::$callbackCatcher);
}
}