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