Author: Johann Zelger (jz@appserver.io)
Inheritance: implements AppserverIo\Server\Interfaces\ServerConfigurationInterface
 /**
  * Checks whether the getRewrites() method returns the expected result.
  *
  * @return void
  * @todo
  */
 public function testGetVirtualHosts()
 {
     // initialize the array with expected result
     $virtualHosts = json_decode(file_get_contents(__DIR__ . '/Api/Node/_files/prepareVirtualHosts.json'));
     // create a mock configuration instance
     $mockNode = $this->getMock('AppserverIo\\Appserver\\Core\\Api\\Node\\ServerNode', array('getVirtualHostsAsArray'));
     $mockNode->expects($this->once())->method('getVirtualHostsAsArray')->will($this->returnValue($virtualHosts));
     // initialize the server node
     $serverNode = new ServerNodeConfiguration($mockNode);
     // check the array with the virtual hosts data
     $this->assertSame($virtualHosts, $serverNode->getVirtualHosts());
 }