/**
  * In case there are no dependencies all nodes should be returned in their added order.
  *
  * @test
  */
 public function testWithoutDependencies()
 {
     $graph = new DependencyGraph();
     $graph->addNode($nodeA = new DependencyNode('A'));
     $graph->addNode($nodeB = new DependencyNode('B'));
     $graph->addNode($nodeC = new DependencyNode('C'));
     $graph->addNode($nodeD = new DependencyNode('D'));
     $resolved = $graph->resolve();
     $this->assertEquals(array('A', 'B', 'C', 'D'), $resolved);
     $this->assertEquals(array($nodeA, $nodeB, $nodeC, $nodeD), $graph->getNodes());
 }