Пример #1
0
 public function getAlexa()
 {
     try {
         $seostats = new SEOstats();
         if ($seostats->setUrl($this->url)) {
             return Alexa::getGlobalRank();
         }
     } catch (Exception $e) {
         $e->getMessage();
     }
 }
Пример #2
0
 public function testSetUrlInvalid()
 {
     $this->setExpectedException('SEOstats\\Common\\SEOstatsException', 'Invalid URL!');
     $this->SUT->setUrl("github.com");
 }