/** * @depends testGetRoot */ public function testDescendants() { $root = AdjacencyList::model()->getRoot(); $descendants = $root->descendants(1)->findAll(); $this->assertEquals(count($descendants), 2); }
/** * @expectedException Gliph\Exception\NonexistentVertexException */ public function testEachAdjacentMissingVertex() { $this->g->eachAdjacent($this->v['a'], function () { }); }