Я создал несколько тестов, но есть проблема с их запуском
In bootstrap I have:
define("BASE_PATH",str_replace("\\","/",dirname(__FILE__)));
//Get an array of your include paths
$include_parts = explode(PATH_SEPARATOR,get_include_path());
//Extend the paths
$include_parts[] = dirname(dirname(BASE_PATH)); //this is ../../
//recompile the paths and set them
set_include_path(implode(PATH_SEPARATOR,$include_parts));
/**
* Test if phpunit running on php 5.3 or newer
*/
version_compare(PHP_VERSION, '5.3', '<') and exit('Test requires PHP 5.3 or newer.');
error_reporting(E_ALL & ~E_STRICT);
ini_set('display_errors', TRUE);
define('DOC_ROOT','');
При запуске теста я получаю предупреждение
Предупреждение: include_once (): Ошибка открытия '/ private / config / abc.php 'для включения (include_path =' / usr / local / bin: / usr / local / lib / php /:.:/ opt / docroot / shared: / export / home / john / public_html / sports ') в / export/home/john/public_html/sports/private/tests/Football/Match/LineupTest.php в строке 3
Что не так, потому что я вижу, что включенный путь, я вижу мой каталог.