woocommerce-paypal-payments/tests/PHPUnit/TestCase.php
2020-09-14 07:51:45 +03:00

28 lines
566 B
PHP

<?php
declare(strict_types=1);
namespace WooCommerce\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();
}
}