forked from LiveCarta/PayPal-PHP-Server-SDK
repo initialized with test cases
This commit is contained in:
36
tests/Controllers/BaseTestController.php
Normal file
36
tests/Controllers/BaseTestController.php
Normal 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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user