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

rewrite the expected/* files once they are cleaned up

parent 7c812cde
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -725,6 +725,7 @@ abstract class IntegrationTestCase extends PHPUnit_Framework_TestCase ...@@ -725,6 +725,7 @@ abstract class IntegrationTestCase extends PHPUnit_Framework_TestCase
} }
$expected = $this->loadExpectedFile($expectedFilePath); $expected = $this->loadExpectedFile($expectedFilePath);
$expectedContent = $expected;
$expected = $this->normalizePdfContent($expected); $expected = $this->normalizePdfContent($expected);
if (empty($expected)) { if (empty($expected)) {
...@@ -801,6 +802,10 @@ abstract class IntegrationTestCase extends PHPUnit_Framework_TestCase ...@@ -801,6 +802,10 @@ abstract class IntegrationTestCase extends PHPUnit_Framework_TestCase
&& empty($compareAgainst) && empty($compareAgainst)
) { ) {
file_put_contents($processedFilePath, $response); file_put_contents($processedFilePath, $response);
if(trim($expectedContent) != trim($expected)) {
file_put_contents($expectedFilePath, $expected);
}
} }
} catch (Exception $ex) { } catch (Exception $ex) {
$this->comparisonFailures[] = $ex; $this->comparisonFailures[] = $ex;
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter