/**
  * @covers ::getServerList
  * @covers ::setServerList
  */
 public function testServerListPropertyMayBeAccessedViaMethods()
 {
     $environment = new Environment('test');
     $serverList = new ServerList();
     $serverList->append(new Server('srv-123'));
     $environment->setServerList($serverList);
     $this->assertEquals('srv-123', $environment->getServerList()->offsetGet(0)->getName());
 }
 private function getUntieredServerList()
 {
     $serverList = new ServerList();
     $serverList->append(Server::create(['name' => 'vcs-1', 'services' => ['vcs' => ['vcs_type' => 'git', 'vcs_url' => 'appname@vcs-1.test.hosting:appname.git', 'vcs_path' => 'tags/2016-04-16.0']]]));
     $serverList->append(Server::create(['name' => 'bal-123', 'services' => ['varnish' => ['status' => 'active']]]));
     $serverList->append(Server::create(['name' => 'bal-234', 'services' => ['varnish' => ['status' => 'hot_spare']]]));
     $serverList->append(Server::create(['name' => 'srv-345', 'services' => ['database' => [], 'web' => ['php_max_procs' => 10, 'status' => 'online', 'env_status' => 'active']]]));
     return $serverList;
 }