aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStevan Radakovic <stevan.radakovic@linaro.org>2012-05-09 09:53:36 +0200
committerStevan Radakovic <stevan.radakovic@linaro.org>2012-05-09 09:53:36 +0200
commit0c6c9a4bcfd445f4cd3de03d22371b8707eda68b (patch)
treee64b35d18a8440cf338be8e3b800174b8062a60c
parentddb096869361e914946d193f5645a695c1870a25 (diff)
Add file list sorting in getFilesList test.
-rw-r--r--testing/LicenseHelperTest.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/testing/LicenseHelperTest.php b/testing/LicenseHelperTest.php
index 15c1ceb..f47c672 100644
--- a/testing/LicenseHelperTest.php
+++ b/testing/LicenseHelperTest.php
@@ -79,6 +79,9 @@ class LicenseHelperTest extends PHPUnit_Framework_TestCase
$file_list = LicenseHelper::getFilesList($temp_dir_name);
$this->assertCount(2, $file_list);
+ // Sort the file list, this function returns the files as they are
+ // written on the filesystem.
+ sort($file_list);
$this->assertEquals("unittest1", $file_list[0]);
$this->assertEquals("unittest2", $file_list[1]);