mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-02 00:32:15 +09:00
Fix unit tests and misuse of global scope
This commit is contained in:
parent
19ec92fc68
commit
08e7f7e32a
5 changed files with 4 additions and 6 deletions
|
|
@ -22,7 +22,7 @@ foreach($dsn as $piece) {
|
|||
$dbinfo[$key] = $val;
|
||||
}
|
||||
|
||||
if(\Filehandler::exists(_XE_PATH_ . 'config/install.config.php')) {
|
||||
if(file_exists(_XE_PATH_ . 'config/install.config.php')) {
|
||||
$I->deleteFile(_XE_PATH_ . 'config/install.config.php');
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,4 @@
|
|||
<?php
|
||||
require_once( _XE_PATH_.'config/func.inc.php');
|
||||
|
||||
class FuncIncTest extends \Codeception\TestCase\Test
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1,2 +1,3 @@
|
|||
<?php
|
||||
// Here you can initialize variables that will be available to your tests
|
||||
$_SERVER['SCRIPT_NAME'] = '/xe/index.php';
|
||||
|
|
|
|||
|
|
@ -1,8 +1,6 @@
|
|||
<?php
|
||||
// This is global bootstrap for autoloading
|
||||
if(!defined('__XE__')) define('__XE__', true);
|
||||
if(!defined('_XE_PATH_')) define('_XE_PATH_', realpath(dirname(__FILE__).'/../').'/');
|
||||
require_once _XE_PATH_.'config/config.inc.php';
|
||||
require dirname(__DIR__) . '/common/autoload.php';
|
||||
|
||||
function _debug() {
|
||||
$args = func_get_args();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue