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>2016-03-31 13:30:09 +0300
committermattab <matthieu.aubry@gmail.com>2016-03-31 13:30:09 +0300
commitc881db234a884f127e18dcafac84c9e6407fec17 (patch)
tree2385d64252e9e0c2bb62d0690550db181ed14e2c /tests
parent61c1a1587eef07b9a33319a8a00696b763210f35 (diff)
Using assertFileEquals helper
Diffstat (limited to 'tests')
-rw-r--r--tests/PHPUnit/Integration/ReleaseCheckListTest.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/PHPUnit/Integration/ReleaseCheckListTest.php b/tests/PHPUnit/Integration/ReleaseCheckListTest.php
index 6cb62cccdf..e416ad1602 100644
--- a/tests/PHPUnit/Integration/ReleaseCheckListTest.php
+++ b/tests/PHPUnit/Integration/ReleaseCheckListTest.php
@@ -335,11 +335,11 @@ class ReleaseCheckListTest extends \PHPUnit_Framework_TestCase
Http::fetchRemoteFile('https://github.com/downloads/yui/yuicompressor/yuicompressor-2.4.7.zip', PIWIK_DOCUMENT_ROOT .'/tmp/yuicompressor.zip');
shell_exec('unzip -n '. PIWIK_DOCUMENT_ROOT .'/tmp/yuicompressor.zip');
shell_exec("sed '/<DEBUG>/,/<\/DEBUG>/d' < ". PIWIK_DOCUMENT_ROOT ."/js/piwik.js | sed 's/eval/replacedEvilString/' | java -jar yuicompressor-2.4.7/build/yuicompressor-2.4.7.jar --type js --line-break 1000 | sed 's/replacedEvilString/eval/' | sed 's/^[/][*]/\/*!/' > " . PIWIK_DOCUMENT_ROOT ."/piwik-minified.js");
- $piwikJsMinified = file_get_contents(PIWIK_DOCUMENT_ROOT ."/piwik-minified.js");
- $piwikJsMinifiedInGit = file_get_contents(PIWIK_DOCUMENT_ROOT . '/piwik.js');
-
- $this->assertEquals($piwikJsMinified, $piwikJsMinifiedInGit, 'piwik.js minified is out of date - please re-generate the piwik.js. See instructions in js/README');
+ $this->assertFileEquals(PIWIK_DOCUMENT_ROOT . '/piwik-minified.js',
+ PIWIK_DOCUMENT_ROOT . '/piwik.js',
+ 'minified /piwik.js is out of date, please re-generate the minified /piwik.js using instructions in /js/README'
+ );
}
public function testTmpDirectoryContainsGitKeep()