public function testNext()
 {
     $root = new RootNode();
     $parent_one = $this->createParentNode();
     $one = $this->createNode();
     $parent_one->append($one);
     $first = $this->createNode();
     $parent_one->append($first);
     $root->append($parent_one);
     $parent_two = $this->createParentNode();
     $two = $this->createNode();
     $parent_two->append($two);
     $second = $this->createNode();
     $parent_two->append($second);
     $root->append($parent_two);
     $collection = new NodeCollection([$one, $two]);
     $matches = $collection->next();
     $this->assertCount(2, $matches);
     $this->assertSame($first, $matches[0]);
     $this->assertSame($second, $matches[1]);
 }