diff options
Diffstat (limited to 'tests/PHPUnit/Framework/TestRequest')
-rw-r--r-- | tests/PHPUnit/Framework/TestRequest/Response.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/PHPUnit/Framework/TestRequest/Response.php b/tests/PHPUnit/Framework/TestRequest/Response.php index cc5b682be2..5969725de7 100644 --- a/tests/PHPUnit/Framework/TestRequest/Response.php +++ b/tests/PHPUnit/Framework/TestRequest/Response.php @@ -112,6 +112,7 @@ class Response $apiResponse = $this->normalizePdfContent($apiResponse); $apiResponse = $this->removeXmlFields($apiResponse); + $apiResponse = $this->removeTodaysDate($apiResponse); $apiResponse = $this->normalizeDecimalFields($apiResponse); $apiResponse = $this->normalizeEncodingPhp533($apiResponse); $apiResponse = $this->normalizeSpaces($apiResponse); @@ -120,6 +121,11 @@ class Response return $apiResponse; } + private function removeTodaysDate($apiResponse) + { + return str_replace(date('Y-m-d'), 'today-date-removed-in-tests', $apiResponse); + } + private function normalizeEncodingPhp533($apiResponse) { return str_replace('&#039;', "'", $apiResponse); @@ -175,6 +181,7 @@ class Response $response = preg_replace('/\(D:[0-9]{14}/', '(D:19700101000000', $response); $response = preg_replace('/\/ID \[ <.*> ]/', '', $response); $response = preg_replace('/\/id:\[ <.*> ]/', '', $response); + $response = $this->removeXmlElement($response, "xmp:CreateDate"); $response = $this->removeXmlElement($response, "xmp:ModifyDate"); $response = $this->removeXmlElement($response, "xmp:MetadataDate"); |