mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 18:16:38 +08:00
29 lines
562 B
PHP
29 lines
562 B
PHP
|
<?php
|
||
|
declare(strict_types=1);
|
||
|
|
||
|
namespace Inpsyde\PayPalCommerce;
|
||
|
|
||
|
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();
|
||
|
}
|
||
|
}
|