Example #1
0
 /**
  * @covers Application\Math\Graph::getDistance
  * @covers Application\Math\Graph::solve
  */
 public function testGetDistance()
 {
     $this->object->addEdge(2100, 2101, 10);
     $this->object->addEdge(2101, 2102, 5);
     $this->object->addEdge(2101, 2100, 10);
     $this->object->addEdge(2102, 2101, 5);
     $this->object->setStartVertex(strtoupper(2100))->setEndVertex(strtoupper(2102));
     $this->assertSame(15, $this->object->getDistance());
 }