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