forked from LiveCarta/PayPal-PHP-Server-SDK
37 lines
861 B
PHP
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);
|
|
}
|
|
}
|