/**
  * @param Crawler                  $crawler
  * @param ArticleSelectorInterface $selector
  */
 public function __construct(Crawler $crawler, ArticleSelectorInterface $selector)
 {
     $this->crawler = $crawler;
     $this->selector = $selector;
     $this->authorTemplate = new TechCrunchAuthorTemplate($crawler, $selector->getAuthor());
     $this->metaTemplate = new MetaTemplate($crawler, $selector->getMeta());
     $this->linkTemplate = new LinkTemplate($crawler, $selector->getLink());
 }
 public function testGetLink()
 {
     $this->assertInstanceOf('\\Cekurte\\WebScrapingBundle\\Selector\\Core\\LinkSelectorInterface', $this->article->getLink());
 }