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>2014-08-10 18:52:45 +0400
committermattab <matthieu.aubry@gmail.com>2014-08-10 18:52:45 +0400
commit50d3e12140bd8bff39b4110a4b6f7c4f5a5cb09b (patch)
treec6d576201d481ef41eba8077247b9f5a2ae1ff74 /tests
parent259eec366f52b4d5c07bfee501e928cb105a3ed9 (diff)
Skip a test for 5.3.3 and do not allow failures of Integration tests
Diffstat (limited to 'tests')
-rw-r--r--tests/PHPUnit/Impl/TestRequestResponse.php2
-rw-r--r--tests/PHPUnit/Integration/Core/Plugin/SettingsTest.php3
2 files changed, 4 insertions, 1 deletions
diff --git a/tests/PHPUnit/Impl/TestRequestResponse.php b/tests/PHPUnit/Impl/TestRequestResponse.php
index 736c82b7cb..9ce1a3da76 100644
--- a/tests/PHPUnit/Impl/TestRequestResponse.php
+++ b/tests/PHPUnit/Impl/TestRequestResponse.php
@@ -112,7 +112,7 @@ class TestRequestResponse
private function normalizeEncodingPhp533($apiResponse)
{
if(!IntegrationTestCase::isPhpVersion53()
- || strpos($apiResponse, '<result>') === false) {
+ || strpos($apiResponse, '<result') === false) {
return $apiResponse;
}
return str_replace('&amp;#039;', "'", $apiResponse);
diff --git a/tests/PHPUnit/Integration/Core/Plugin/SettingsTest.php b/tests/PHPUnit/Integration/Core/Plugin/SettingsTest.php
index 9d515201ec..e58cee40eb 100644
--- a/tests/PHPUnit/Integration/Core/Plugin/SettingsTest.php
+++ b/tests/PHPUnit/Integration/Core/Plugin/SettingsTest.php
@@ -416,6 +416,9 @@ class Core_Plugin_SettingsTest extends DatabaseTestCase
public function test_getSettingsForCurrentUser_shouldReturnAllSettingsIfEnoughPermissionsAndSortThemBySettingOrder()
{
+ if(\Piwik\Tests\IntegrationTestCase::isPhpVersion53()) {
+ $this->markTestSkipped('does not pass on PHP 5.3.3');
+ }
$this->setSuperUser();
$this->addSystemSetting('mysystemsetting1', 'mytitle1');