TrackManiaControl/phpunittests/core/ManiaControlTest.php

32 lines
765 B
PHP
Raw Normal View History

2017-04-15 23:20:36 +02:00
<?php
use ManiaControl\ManiaControl;
2017-04-16 14:43:13 +02:00
/**
* PHP Unit Test for Mania Control Class
*
* @author ManiaControl Team <mail@maniacontrol.com>
* @copyright 2014-2017 ManiaControl Team
* @license http://www.gnu.org/licenses/ GNU General Public License, Version 3
*/
2017-04-15 23:20:36 +02:00
class ManiaControlTest extends PHPUnit_Framework_TestCase {
public function testRun(){
$maniaControl = new ManiaControl();
$maniaControl->run(10);
sleep(15);
2017-04-16 14:43:13 +02:00
$this->assertNotNull($maniaControl->getBillManager());
2017-04-15 23:20:36 +02:00
//$this->l
//$this->assertNull($maniaControl);
}
/* public function testGetClient(){
$maniaControl = new ManiaControl();
$mcClient = $maniaControl->getClient();
//$maniaControl->connect();
//$mpClient = new Maniaplanet\DedicatedServer\Connection();
}*/
}