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