mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-26 13:19:55 +00:00
Moved conditional class
This commit is contained in:
parent
eba33b0e00
commit
3608ee1194
@ -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…
x
Reference in New Issue
Block a user