Exemplo n.º 1
0
 public function testJustRunNotInYandexCatalog() 
 {
     $catalogChecker = new CatalogChecker(new YACASearchCatalogStrategy('justrun.ru'));
     $this->assertFalse($catalogChecker->check());
 }
Exemplo n.º 2
0
 public function testTravelMailRuIsInCatalog()
 {
     $catalogChecker = new CatalogChecker(new YandexNewsCatalogStrategy('travel.mail.ru'));
     $this->assertTrue($catalogChecker->check());
 }
Exemplo n.º 3
0
 public function testNewsMailRuIsInCatalog() 
 {
     $catalogChecker = new CatalogChecker(new GoogleNewsCatalogStrategy('news.mail.ru'));
     $this->assertTrue($catalogChecker->check());
 }