Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'tests/PHPUnit/Plugins/SEOTest.php')
-rw-r--r--tests/PHPUnit/Plugins/SEOTest.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/PHPUnit/Plugins/SEOTest.php b/tests/PHPUnit/Plugins/SEOTest.php
index 31272c919d..d96efcbe9c 100644
--- a/tests/PHPUnit/Plugins/SEOTest.php
+++ b/tests/PHPUnit/Plugins/SEOTest.php
@@ -38,7 +38,12 @@ class SEOTest extends PHPUnit_Framework_TestCase
*/
public function test_API()
{
- $dataTable = Piwik_SEO_API::getInstance()->getRank('http://www.microsoft.com/');
+ try {
+ $dataTable = Piwik_SEO_API::getInstance()->getRank('http://www.microsoft.com/');
+ } catch(Exception $e) {
+ echo "SKIPPEd";
+ $this->markTestSkipped('A SEO http request failed, Skipping this test for now. Error was: '.$e->getMessage());
+ }
$renderer = Piwik_DataTable_Renderer::factory('php');
$renderer->setSerialize(false);
$ranks = $renderer->render($dataTable);