2017-10-01 09:33:49 -04:00
|
|
|
<?php
|
2017-11-16 20:23:18 -05:00
|
|
|
/** @license MIT
|
|
|
|
* Copyright 2017 J. King, Dustin Wilson et al.
|
|
|
|
* See LICENSE and AUTHORS files for details */
|
|
|
|
|
2017-10-01 09:33:49 -04:00
|
|
|
declare(strict_types=1);
|
|
|
|
namespace JKingWeb\Arsse;
|
|
|
|
|
|
|
|
const NS_BASE = __NAMESPACE__."\\";
|
|
|
|
define(NS_BASE."BASE", dirname(__DIR__).DIRECTORY_SEPARATOR);
|
2019-05-02 12:52:52 -04:00
|
|
|
const DOCROOT = BASE."tests".DIRECTORY_SEPARATOR."docroot".DIRECTORY_SEPARATOR;
|
2017-12-17 10:27:34 -05:00
|
|
|
ini_set("memory_limit", "-1");
|
2019-09-12 08:32:40 -04:00
|
|
|
ini_set("zend.assertions", "1");
|
|
|
|
ini_set("assert.exception", "true");
|
2021-06-10 18:34:13 -04:00
|
|
|
ini_set("pcre.jit", "0");
|
2021-03-02 11:54:28 -05:00
|
|
|
// FIXME: This is required by a dependency of Picofeed
|
|
|
|
error_reporting(\E_ALL & ~\E_DEPRECATED);
|
2017-10-20 18:41:21 -04:00
|
|
|
require_once BASE."vendor".DIRECTORY_SEPARATOR."autoload.php";
|
2019-12-07 10:26:48 -05:00
|
|
|
|
|
|
|
if (function_exists("xdebug_set_filter")) {
|
2021-01-03 16:51:25 -05:00
|
|
|
if (defined("XDEBUG_PATH_INCLUDE")) {
|
|
|
|
xdebug_set_filter(\XDEBUG_FILTER_CODE_COVERAGE, XDEBUG_PATH_INCLUDE, [BASE."lib/"]);
|
|
|
|
} else {
|
|
|
|
xdebug_set_filter(\XDEBUG_FILTER_CODE_COVERAGE, XDEBUG_PATH_WHITELIST, [BASE."lib/"]);
|
|
|
|
}
|
2019-12-07 10:26:48 -05:00
|
|
|
}
|