. */ // enable in php 7 // declare(Strict_types=1); /** * @brief Covers index.php tests */ final class ServiceTest extends PHPUnit_Framework_TestCase { public function testData() { $webservice = new GnuBoat\Webservice(); $this->assertInstanceOf(GnuBoat\Webservice::class, $webservice); $_POST["request"] = "data"; $webservice->process(); } public function testLogFiles() { $webservice = new GnuBoat\Webservice(); $this->assertInstanceOf(GnuBoat\Webservice::class, $webservice); $_POST["request"] = "logfiles"; $webservice->process(); } public function testShutdown() { $webservice = new GnuBoat\Webservice(); $this->assertInstanceOf(GnuBoat\Webservice::class, $webservice); $_POST["request"] = "shutdown"; $webservice->process(); } public function testMap() { $webservice = new GnuBoat\Webservice(); $this->assertInstanceOf(GnuBoat\Webservice::class, $webservice); $_POST["request"] = "map"; $webservice->process(); } } ?>