public function testGetNeighbors() { $root = new Node('r'); $root->addChild($a = new Node('a'))->addChild($b = new Node('b'))->addChild($c = new Node('c')); $this->assertEquals([$b, $c], $a->getNeighbors()); }