woocommerce-paypal-payments/tests/PHPUnit/bootstrap.php

17 lines
621 B
PHP
Raw Normal View History

2020-04-28 15:03:25 +03:00
<?php
declare(strict_types=1);
2021-08-27 20:41:06 +03:00
define('TESTS_ROOT_DIR', dirname(__DIR__));
define('ROOT_DIR', dirname(TESTS_ROOT_DIR));
2023-12-14 13:55:19 +00:00
require_once TESTS_ROOT_DIR . '/inc/wp_functions.php';
2021-08-27 20:41:06 +03:00
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';
2023-02-07 15:30:59 +02:00
require_once TESTS_ROOT_DIR . '/stubs/WC_Checkout.php';
2024-09-11 19:46:48 +04:00
require_once TESTS_ROOT_DIR . '/stubs/Task.php';
2025-06-27 12:56:12 +04:00
require_once TESTS_ROOT_DIR . '/stubs/DefaultPaymentGateways.php';
2022-02-09 16:28:27 +02:00
Hamcrest\Util::registerGlobalFunctions();