Пример #1
0
 public function __construct()
 {
     parent::__construct();
     $this->xmlFile = __DIR__ . DS . '..' . DS . 'input' . DS . 'taxonomy.xml';
     $destinationsXmlFile = __DIR__ . DS . '..' . DS . 'input' . DS . 'destinations.xml';
     $handler = new \LP\DestinationHandler($destinationsXmlFile);
     $this->firstDestination = $handler->fetch();
     $this->secondDestination = $handler->fetch();
 }
Пример #2
0
 public function testFeedIntroductionNotContainsText()
 {
     $handler = new \LP\DestinationHandler($this->xmlFile);
     $destination = $handler->fetch();
     $this->assertNotRegexp('/Crime is a problem throughout South Africa/', $destination->introduction);
 }