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:
authordiosmosis <diosmosis@users.noreply.github.com>2018-08-18 00:38:59 +0300
committerdiosmosis <diosmosis@users.noreply.github.com>2018-08-21 04:57:25 +0300
commit32286f1bb3ec9fbcd6fc25e13d0256d8aaa58797 (patch)
tree9a0e222c0ec894c76316e25ab5f5b84243b43da7 /tests
parent1d6b71bdeffb8edb2fce5de3ee36c382236f7d58 (diff)
Remove date & time in system tests.
Diffstat (limited to 'tests')
-rw-r--r--tests/PHPUnit/Framework/TestRequest/Response.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/PHPUnit/Framework/TestRequest/Response.php b/tests/PHPUnit/Framework/TestRequest/Response.php
index 91f269eb09..492965d04a 100644
--- a/tests/PHPUnit/Framework/TestRequest/Response.php
+++ b/tests/PHPUnit/Framework/TestRequest/Response.php
@@ -124,7 +124,9 @@ class Response
private function removeTodaysDate($apiResponse)
{
- return str_replace(date('Y-m-d'), 'today-date-removed-in-tests', $apiResponse);
+ $result = preg_replace('/' . date('Y-m-d') . ' [0-9]{2}:[0-9]{2}:[0-9]{2}/', 'today-date-removed-in-tests', $apiResponse);
+ $result = str_replace(date('Y-m-d'), 'today-date-removed-in-tests', $result);;
+ return $result;
}
private function normalizeEncodingPhp533($apiResponse)