Skip to content
Extraits de code Groupes Projets
Valider a3ddb269 rédigé par mattab's avatar mattab
Parcourir les fichiers

on php 5.3.3 encode the single quote properly to workaround php bug

parent 3b962d95
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -49,7 +49,7 @@ matrix:
env: TEST_SUITE=AngularJSTests MYSQL_ADAPTER=PDO_MYSQL
- php: hhvm
env: TEST_SUITE=AngularJSTests MYSQL_ADAPTER=PDO_MYSQL
# Only run Mysqli tests on PHP 5.5
# Only run Mysqli tests on PHP 5.3
- php: 5.4
env: TEST_SUITE=IntegrationTests MYSQL_ADAPTER=MYSQLI
- php: 5.4
......@@ -75,6 +75,7 @@ matrix:
- php: hhvm
env: TEST_SUITE=CoreTests MYSQL_ADAPTER=MYSQLI
script: ./travis.sh
before_install:
......
......@@ -104,10 +104,22 @@ class TestRequestResponse
$apiResponse = $this->normalizePdfContent($apiResponse);
$apiResponse = $this->removeXmlFields($apiResponse);
$apiResponse = $this->normalizeDecimalFields($apiResponse);
$apiResponse = $this->normalizeEncodingPhp533($apiResponse);
return $apiResponse;
}
private function normalizeEncodingPhp533($apiResponse)
{
if($this->params['format'] != 'xml') {
return;
}
if(!IntegrationTestCase::isPhpVersion53()) {
return;
}
return str_replace("'", ''', $apiResponse);
}
private function removeIdSubtableParamFromUrlsInResponse($apiResponse)
{
return preg_replace("/idSubtable=[0-9]+/", 'idSubtable=', $apiResponse);
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter