public function test_create_blueprint_server() { $server = new BlueprintServer('localhost', 6789, __FILE__); $server->start(); $server->start(); $this->assertTrue($server->isRunning()); $server->stop(); $this->assertFalse($server->isRunning()); }
public static function setUpBeforeClass() { $blueprintFile = __DIR__ . '/../../blueprint.php'; $url = self::getUrl(); $server = new BlueprintServer($url->getHost(), $url->getPort(), $blueprintFile); self::$blueprintFile = $blueprintFile; self::$server = $server; $server->start(); }