/**
  * @test
  * @covers ::configureAPIURL
  * @group default
  */
 public function testConfigureAPIUrl()
 {
     $this->assertEquals('http://localhost/rest/v10/', Helpers::configureAPIURL('localhost'));
     $this->assertEquals('https://localhost/rest/v10/', Helpers::configureAPIURL('https://localhost'));
     $this->assertEquals('http://localhost/rest/v10/', Helpers::configureAPIURL('localhost/rest/v10'));
     $this->assertEquals('http://localhost/rest/v10/', Helpers::configureAPIURL('localhost/rest/v10/'));
     $this->assertEquals('http://localhost/rest/v10/', Helpers::configureAPIURL('http://localhost/rest/v10/'));
     $this->assertEquals('http://localhost/rest/v10/', Helpers::configureAPIURL('http://localhost/'));
     $this->assertEquals('https://localhost/rest/v10/', Helpers::configureAPIURL('https://localhost/rest/v10'));
     $this->assertEquals('https://localhost/rest/v10/', Helpers::configureAPIURL('https://localhost/rest/v10/'));
     $this->assertEquals('http://localhost/rest/v10/', Helpers::configureAPIURL('http://localhost/rest/v10/rest/v10/rest/v10'));
 }
 /**
  * @inheritdoc
  * @param string $server
  */
 public function setServer($server)
 {
     $this->server = $server;
     $this->apiURL = Helpers::configureAPIURL($this->server);
     return $this;
 }