/**
  * @covers VDB\Spider\Uri\DiscoveredUri
  */
 public function testDepthFound()
 {
     $uri = new DiscoveredUri('http://example.org');
     $uri->setDepthFound(12);
     $this->assertEquals(12, $uri->getDepthFound());
 }
Exemple #2
0
 /**
  * @return bool Returns true if this URI was found at max depth
  */
 private function isAtMaxDepth(DiscoveredUri $uri)
 {
     return $uri->getDepthFound() === $this->maxDepth;
 }