Example #1
0
 /**
  * @covers Application\Math\Graph::getPath
  * @covers Application\Math\Graph::solve
  */
 public function testGetPath()
 {
     $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->assertInstanceOf('\\Zend\\Stdlib\\SplStack', $this->object->getPath());
     $this->assertInstanceOf('\\Zend\\Stdlib\\SplStack', $this->object->getPath());
 }