/**
* Checks whether the getEnvironmentVariables() method returns the expected result.
*
* @return void
* @todo
*/
public function testGetEnvironmentVariables()
{
// initialize the array with expected result
$environmentVariables = json_decode(file_get_contents(__DIR__ . '/Api/Node/_files/prepareEnvironmentVariables.json'));
// create a mock configuration instance
$mockNode = $this->getMock('AppserverIo\\Appserver\\Core\\Api\\Node\\ServerNode', array('getEnvironmentVariablesAsArray'));
$mockNode->expects($this->once())->method('getEnvironmentVariablesAsArray')->will($this->returnValue($environmentVariables));
// initialize the server node
$serverNode = new ServerNodeConfiguration($mockNode);
// check the array with the environment variables data
$this->assertSame($environmentVariables, $serverNode->getEnvironmentVariables());
}