コード例 #1
0
 public function testGetOutletDescription()
 {
     $name = $this->outlet->getDescription();
     $this->assertInstanceOf('\\Cekurte\\WebScrapingBundle\\Selector\\SelectorInterface', $name);
     $this->assertEquals('meta[property="og:description"]', $name->getSelectorKey());
     $this->assertEquals(SelectorBuilder::NODE_ATTR, $name->getSelectorType());
     $this->assertEquals('content', $name->getSelectorAttr());
 }
コード例 #2
0
 /**
  * @inheritdoc
  */
 public function getDescription()
 {
     return SelectorResolver::create()->resolve($this->crawler, $this->selector->getDescription())->getSingleResult();
 }