Exemplo n.º 1
0
 /**
  * Populate rules property with build Rule instance
  * @param  Rules  $rules
  * @param  array  $current Collection of Rule objects
  */
 private function populateRules(Rules $rules, array $current)
 {
     foreach ($current as $item) {
         $rules->add($item);
     }
 }
Exemplo n.º 2
0
 public function testInvalidSitemapUrl()
 {
     $this->given($sut = new SUT())->exception(function () use($sut) {
         $sut->addSitemap('sitemap.xml');
     })->isInstanceOf('Bee4\\RobotsTxt\\Exception\\InvalidUrlException');
 }