public function test_LogImporter_RetriesWhenServerFails()
 {
     $this->simulateTrackerFailure();
     $logFile = PIWIK_INCLUDE_PATH . '/tests/resources/access-logs/fake_logs_enable_all.log';
     $options = array('--idsite' => self::$fixture->idSite, '--token-auth' => Fixture::getTokenAuth(), '--retry-max-attempts' => 5, '--retry-delay' => 1);
     $output = Fixture::executeLogImporter($logFile, $options, $allowFailure = true);
     $output = implode("\n", $output);
     for ($i = 2; $i != 6; ++$i) {
         $this->assertContains("Retrying request, attempt number {$i}", $output);
     }
     $this->assertNotContains("Retrying request, attempt number 6", $output);
     $this->assertContains("Max number of attempts reached, server is unreachable!", $output);
 }