mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-17 23:09:10 +08:00
Fixing test breaks.
This commit is contained in:
@@ -251,7 +251,7 @@ class FileHelper
|
|||||||
* the supported options.
|
* the supported options.
|
||||||
* @return boolean whether the file or directory satisfies the filtering 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)) {
|
if (isset($options['filter']) && !call_user_func($options['filter'], $path)) {
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
@@ -215,6 +215,7 @@ class FileHelperTest extends TestCase
|
|||||||
|
|
||||||
$foundFiles = FileHelper::findFiles($dirName);
|
$foundFiles = FileHelper::findFiles($dirName);
|
||||||
sort($expectedFiles);
|
sort($expectedFiles);
|
||||||
|
sort($foundFiles);
|
||||||
$this->assertEquals($expectedFiles, $foundFiles);
|
$this->assertEquals($expectedFiles, $foundFiles);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user