/** * @inheritDoc */ public function ping() { if (time() - $this->lastSuccessfulDownload < $this->configuration->getInterval()) { $this->logger->debug($this->getName() . ' got ping but it is too early to do something, skipping'); return; } if (!$this->configuration->isValid()) { $this->logger->warning($this->getName() . ' configuration is not valid - skipping'); return; } $this->getNewDataFromOrigin(); $this->logger->debug('Pool in ' . $this->getName() . ' now contains ' . count($this->links) . ' entries'); }
public function testConfigurationIsConsideredValidAfterSettingUrl() { $this->subjectUnderTest->setUrl('http://example.org/feed.rss'); $this->assertTrue($this->subjectUnderTest->isValid()); }