Пример #1
0
 public function testGetOgTitle()
 {
     $meta = $this->meta->getOgTitle();
     $this->assertInstanceOf('\\Cekurte\\WebScrapingBundle\\Selector\\SelectorInterface', $meta);
     $this->assertEquals('meta[property="og:title"]', $meta->getSelectorKey());
     $this->assertEquals(SelectorBuilder::NODE_ATTR, $meta->getSelectorType());
     $this->assertEquals('content', $meta->getSelectorAttr());
 }
Пример #2
0
 /**
  * @inheritdoc
  */
 public function getOgTitle()
 {
     return SelectorResolver::create()->resolve($this->crawler, $this->selector->getOgTitle())->getSingleResult();
 }