Added some PHPUnit Tests

This commit is contained in:
kremsy
2017-04-16 14:43:13 +02:00
parent 879b3056ce
commit 5e0a5c48a2
8 changed files with 285 additions and 15 deletions

View File

@ -589,7 +589,7 @@ class ManiaControl implements CallbackListener, CommandListener, TimerListener,
$this->getChat()->sendInformation('ManiaControl v' . self::VERSION . ' successfully started!');
$this->startTime = time();
// Main loop
while (!$this->requestQuitMessage) {
$this->loop();
@ -613,8 +613,9 @@ class ManiaControl implements CallbackListener, CommandListener, TimerListener,
/**
* Connect to ManiaPlanet server
* Public only for PHPUnit Tests
*/
private function connect() {
public function connect() {
// Load remote client
$serverConfig = $this->getServer()->loadConfig();