mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-08-30 05:00:51 +08:00
28 lines
576 B
PHP
28 lines
576 B
PHP
<?php
|
|
declare(strict_types=1);
|
|
|
|
namespace WooCommerce\PayPalCommerce\ApiClient;
|
|
|
|
use function Brain\Monkey\setUp;
|
|
use function Brain\Monkey\tearDown;
|
|
use function Brain\Monkey\Functions\expect;
|
|
use Mockery;
|
|
|
|
class TestCase extends \PHPUnit\Framework\TestCase
|
|
{
|
|
public function setUp(): void
|
|
{
|
|
parent::setUp();
|
|
expect('__')->andReturnUsing(function (string $text) {
|
|
return $text;
|
|
});
|
|
setUp();
|
|
}
|
|
|
|
public function tearDown(): void
|
|
{
|
|
tearDown();
|
|
Mockery::close();
|
|
parent::tearDown();
|
|
}
|
|
}
|