crawlUrl() public method

See also: crawl()
public crawlUrl ( $url )
 /**
  *
  */
 public function testCrawlUrl()
 {
     $url = 'http://test.com';
     $source = 'source';
     $urls = ['/index.php'];
     $Http = $this->getMock('\\Essence\\Http\\Client');
     $Http->expects($this->once())->method('get')->with($this->isEqual($url))->will($this->returnValue($source));
     $Crawler = $this->getMockBuilder('\\Essence\\Crawler')->disableOriginalConstructor()->getMock();
     $Crawler->expects($this->once())->method('crawl')->with($this->isEqual($source))->will($this->returnValue($urls));
     $Essence = new Essence(['Http' => $Http, 'Crawler' => $Crawler]);
     $this->assertEquals(Url::resolveAll($urls, $url), $Essence->crawlUrl($url));
 }