/**
  * @covers Navinator\Collection::removeNode
  * @covers Navinator\Collection::offsetExists
  * @covers Navinator\Collection::hasNode
  */
 public function testRemoveNode()
 {
     $nodeData = array('beta', 'alpha', 'alpha/beta', 'delta', 'gamma');
     $nodes = array();
     $c = new Collection();
     foreach ($nodeData as $path) {
         $n = new Node($path);
         $nodes[$path] = $n;
         $c->addNode($n);
     }
     foreach ($nodes as $path => $node) {
         $c->removeNode($node);
         $this->assertFalse($c->hasNode($path));
         $this->assertFalse(isset($c[$path]));
     }
 }