Files
piratepoet/tests/unit/_bootstrap.php
Jan Jakeš 39932e9846 Run PHPStan for unit tests
[MAILPOET-2429]
2019-10-17 15:55:15 +01:00

31 lines
671 B
PHP

<?php
if (!function_exists('__')) {
function __($text) {
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([]);
abstract class MailPoetUnitTest extends \Codeception\TestCase\Test {
protected $runTestInSeparateProcess = false;
protected $preserveGlobalState = false;
}
include '_fixtures.php';