Example #1
0
 /**
  *
  * @param Edges $edges
  * @depends testTwo
  */
 public function testTwoRandom(Edges $edges)
 {
     $edgeRandom = $edges->getEdgeOrder(Edges::ORDER_RANDOM);
     $this->assertInstanceOf('Fhaculty\\Graph\\Edge\\Base', $edgeRandom);
     $edges->getEdgeIndex($edges->getIndexEdge($edgeRandom));
     $edgesRandom = $edges->getEdgesOrder(Edges::ORDER_RANDOM);
     $this->assertInstanceOf('Fhaculty\\Graph\\Set\\Edges', $edgesRandom);
     $this->assertEquals(2, count($edgesRandom));
 }