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