From a8d2eded98b8cdabf351c04c774b43245a037c8c Mon Sep 17 00:00:00 2001 From: Qiang Xue Date: Tue, 11 Jun 2013 11:23:33 -0400 Subject: [PATCH] Fixing test breaks. --- framework/yii/helpers/base/FileHelper.php | 2 +- tests/unit/framework/helpers/FileHelperTest.php | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/framework/yii/helpers/base/FileHelper.php b/framework/yii/helpers/base/FileHelper.php index 8cbf1b2..fc1f91a 100644 --- a/framework/yii/helpers/base/FileHelper.php +++ b/framework/yii/helpers/base/FileHelper.php @@ -251,7 +251,7 @@ class FileHelper * the supported options. * @return boolean whether the file or directory satisfies the filtering options. */ - protected static function filterPath($path, $options) + public static function filterPath($path, $options) { if (isset($options['filter']) && !call_user_func($options['filter'], $path)) { return false; diff --git a/tests/unit/framework/helpers/FileHelperTest.php b/tests/unit/framework/helpers/FileHelperTest.php index 5ff4099..3bebbd6 100644 --- a/tests/unit/framework/helpers/FileHelperTest.php +++ b/tests/unit/framework/helpers/FileHelperTest.php @@ -215,6 +215,7 @@ class FileHelperTest extends TestCase $foundFiles = FileHelper::findFiles($dirName); sort($expectedFiles); + sort($foundFiles); $this->assertEquals($expectedFiles, $foundFiles); }