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-10-08 10:45:13 +0400
committermattab <matthieu.aubry@gmail.com>2014-10-08 10:45:13 +0400
commit7e73ea5389d590d4278486b03811cb0691acc8f2 (patch)
tree3bb0ee572e6b1df925e593b81412a95c8acdb035 /tests
parentd885ba10a67e6a4cdd231ad6dc866b475b543b4f (diff)
don't show CSV file diff as it shows as binary
Diffstat (limited to 'tests')
-rw-r--r--tests/PHPUnit/Impl/TestRequestResponse.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/PHPUnit/Impl/TestRequestResponse.php b/tests/PHPUnit/Impl/TestRequestResponse.php
index 2fb683f00c..bc2c56a337 100644
--- a/tests/PHPUnit/Impl/TestRequestResponse.php
+++ b/tests/PHPUnit/Impl/TestRequestResponse.php
@@ -75,9 +75,10 @@ class TestRequestResponse
return;
}
- // for PDF files, check content size to get quick feedback
+ // check content size to get quick feedback and avoid lengthy diff
+ $checkSizeFirst = array('pdf', 'csv');
if(!empty($expected->requestUrl['reportFormat'])
- && $expected->requestUrl['reportFormat'] == 'pdf') {
+ && in_array($expected->requestUrl['reportFormat'], $checkSizeFirst)) {
Asserts::assertEquals(strlen($expectedText), strlen($actualText), $message);
}