diff --git a/tests/PHPUnit/Integration/AutoSuggestAPITest.php b/tests/PHPUnit/Integration/AutoSuggestAPITest.php
index 77b754840ddc35d90d63aa32d27139036fb8e222..6f793606a09290899b29b9ba3179f2245b06d2a8 100644
--- a/tests/PHPUnit/Integration/AutoSuggestAPITest.php
+++ b/tests/PHPUnit/Integration/AutoSuggestAPITest.php
@@ -23,11 +23,6 @@ class Test_Piwik_Integration_AutoSuggestAPITest extends IntegrationTestCase
      * @group        Integration
      */
     public function testApi($api, $params)
-    {
-        $this->runApiTests($api, $params);
-    }
-
-    public function getApiForTesting()
     {
 
         // on Travis this test seg faults for no reason eg: https://github.com/piwik/piwik/commit/94d0ce393b2c496cda571571a0425af846406fda
@@ -35,6 +30,12 @@ class Test_Piwik_Integration_AutoSuggestAPITest extends IntegrationTestCase
         if($isPhp53) {
             $this->markTestSkipped("Skipping this test as it seg faults on php 5.3 (bug triggered on travis)");
         }
+
+        $this->runApiTests($api, $params);
+    }
+
+    public function getApiForTesting()
+    {
         // we will test all segments from all plugins
         Fixture::loadAllPlugins();