mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-21 08:17:34 +00:00
Moved conditional class
This commit is contained in:
parent
eba33b0e00
commit
3608ee1194
@ -20,6 +20,10 @@
|
||||
*/
|
||||
|
||||
/***REM_START***/
|
||||
if(!class_exists("PHPUnit_Framework_TestCase", false)){
|
||||
class PHPUnit_Framework_TestCase{
|
||||
}
|
||||
}
|
||||
require_once(dirname(__FILE__)."/config.php");
|
||||
require_once(FILE_PATH."/src/functions.php");
|
||||
/***REM_END***/
|
||||
|
@ -1,8 +1,7 @@
|
||||
<?php
|
||||
/***REM_START***/
|
||||
if(!class_exists("PocketMinecraftServer", false)){
|
||||
|
||||
class ServerSuiteTest extends PHPUnit_Framework_TestCase{
|
||||
private $server;
|
||||
public function testStart(){
|
||||
define("NO_THREADS", true);
|
||||
define("DEBUG", -1); //No output
|
||||
@ -29,5 +28,4 @@
|
||||
ServerAPI::request()->close();
|
||||
}
|
||||
}
|
||||
}
|
||||
/***REM_END***/
|
Loading…
x
Reference in New Issue
Block a user