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()); }
/** * @inheritdoc */ public function getDescription() { return SelectorResolver::create()->resolve($this->crawler, $this->selector->getDescription())->getSingleResult(); }