public function testInsertAfter() { $root = new RootNode(); $pivot = $this->createNode(); $root->append($pivot); $test = $this->createNode(); $collection = new NodeCollection([$test], FALSE); $collection->insertAfter($pivot); $this->assertSame($test, $pivot->next()); }