1
0
Files
PayPal-PHP-Server-SDK/tests/Controllers/BaseTestController.php
2024-09-06 15:38:17 +05:00

37 lines
861 B
PHP

<?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);
}
}