woocommerce-paypal-payments/tests/PHPUnit/bootstrap.php
2025-06-27 12:56:12 +04:00

16 lines
621 B
PHP

<?php
declare(strict_types=1);
define('TESTS_ROOT_DIR', dirname(__DIR__));
define('ROOT_DIR', dirname(TESTS_ROOT_DIR));
require_once TESTS_ROOT_DIR . '/inc/wp_functions.php';
require_once ROOT_DIR . '/vendor/autoload.php';
require_once TESTS_ROOT_DIR . '/stubs/WC_Payment_Gateway.php';
require_once TESTS_ROOT_DIR . '/stubs/WC_Payment_Gateway_CC.php';
require_once TESTS_ROOT_DIR . '/stubs/WC_Ajax.php';
require_once TESTS_ROOT_DIR . '/stubs/WC_Checkout.php';
require_once TESTS_ROOT_DIR . '/stubs/Task.php';
require_once TESTS_ROOT_DIR . '/stubs/DefaultPaymentGateways.php';
Hamcrest\Util::registerGlobalFunctions();