Files
piratepoet/tests/unit/_bootstrap.php
Rostislav Wolny 76bb139019 Fix phpstan issues found in integration tests
[MAILPOET-3029]
2020-11-09 11:04:32 +01:00

32 lines
754 B
PHP

<?php
if (!function_exists('__')) {
function __($text, $domain) {
return $text;
}
}
// Fix for mocking WPFunctions
// [PHPUnit\Framework\Exception] Use of undefined constant OBJECT - assumed 'OBJECT' (this will throw an Error in a future version of PHP)
if (!defined('OBJECT')) {
define( 'OBJECT', 'OBJECT' );
}
if (!defined('ABSPATH')) {
define('ABSPATH', '/');
}
if (!defined('WP_DEBUG')) {
define('WP_DEBUG', false);
}
$console = new \Codeception\Lib\Console\Output([]);
// phpcs:ignore PSR1.Classes.ClassDeclaration,Squiz.Classes.ClassFileName
abstract class MailPoetUnitTest extends \Codeception\TestCase\Test {
protected $runTestInSeparateProcess = false;
protected $preserveGlobalState = false;
}
include '_fixtures.php';