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
path: root/tests
diff options
context:
space:
mode:
authormattab <matthieu.aubry@gmail.com>2013-04-17 05:32:12 +0400
committermattab <matthieu.aubry@gmail.com>2013-04-17 05:32:12 +0400
commit4ee37f46f8543e9909acea0e89e4a53ad3740691 (patch)
tree1ce8fe62dc262143980776b8e8d07a5eacdc1557 /tests
parent2534f44428542a463077553a13500fac6e08f837 (diff)
Marking SEO test as skipped if one http request fails,
This will prevent random build failures such as https://travis-ci.org/piwik/piwik/jobs/6399322
Diffstat (limited to 'tests')
-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);