mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-23 04:59:46 +00:00
Moved conditional class
This commit is contained in:
parent
eba33b0e00
commit
3608ee1194
2 changed files with 5 additions and 3 deletions
|
|
@ -20,6 +20,10 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/***REM_START***/
|
/***REM_START***/
|
||||||
|
if(!class_exists("PHPUnit_Framework_TestCase", false)){
|
||||||
|
class PHPUnit_Framework_TestCase{
|
||||||
|
}
|
||||||
|
}
|
||||||
require_once(dirname(__FILE__)."/config.php");
|
require_once(dirname(__FILE__)."/config.php");
|
||||||
require_once(FILE_PATH."/src/functions.php");
|
require_once(FILE_PATH."/src/functions.php");
|
||||||
/***REM_END***/
|
/***REM_END***/
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,7 @@
|
||||||
<?php
|
<?php
|
||||||
/***REM_START***/
|
/***REM_START***/
|
||||||
if(!class_exists("PocketMinecraftServer", false)){
|
|
||||||
class ServerSuiteTest extends PHPUnit_Framework_TestCase{
|
class ServerSuiteTest extends PHPUnit_Framework_TestCase{
|
||||||
private $server;
|
|
||||||
public function testStart(){
|
public function testStart(){
|
||||||
define("NO_THREADS", true);
|
define("NO_THREADS", true);
|
||||||
define("DEBUG", -1); //No output
|
define("DEBUG", -1); //No output
|
||||||
|
|
@ -29,5 +28,4 @@
|
||||||
ServerAPI::request()->close();
|
ServerAPI::request()->close();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
/***REM_END***/
|
/***REM_END***/
|
||||||
Loading…
Add table
Add a link
Reference in a new issue