Files
piratepoet/packages/php/email-editor/tests/unit/_bootstrap.php
2024-11-08 14:06:45 +01:00

42 lines
891 B
PHP

<?php
/**
* This file is part of the MailPoet plugin.
*
* @package MailPoet\EmailEditor
*/
declare(strict_types = 1);
$console = new \Codeception\Lib\Console\Output( array() );
if ( ! function_exists( 'esc_attr' ) ) {
/**
* Mock esc_attr function.
*
* @param string $attr Attribute to escape.
*/
function esc_attr( $attr ) {
return $attr;
}
}
/**
* Base class for unit tests.
*/
abstract class MailPoetUnitTest extends \Codeception\TestCase\Test {
/**
* Disable running tests in separate processes.
*
* @var bool
*/
protected $runTestInSeparateProcess = false; // phpcs:ignore WordPress.NamingConventions.ValidVariableName.PropertyNotSnakeCase
/**
* Disable preserving global state.
*
* @var bool
*/
protected $preserveGlobalState = false; // phpcs:ignore WordPress.NamingConventions.ValidVariableName.PropertyNotSnakeCase
}
require '_stubs.php';