Skip to content
Permalink
Browse files

Fix test.

  • Loading branch information...
ADmad committed May 7, 2017
1 parent a7952c2 commit 7ba80f49bd22a715b661596f665824960039f359
Showing with 3 additions and 3 deletions.
  1. +3 −3 tests/TestCase/Filesystem/FolderTest.php
@@ -797,16 +797,16 @@ public function testFind()
*/
public function testFindRecursive()
{
$Folder = new Folder(CORE_PATH);
$Folder = new Folder(CORE_PATH . 'config');
$result = $Folder->findRecursive('(config|paths)\.php');
$expected = [
CORE_PATH . 'config' . DS . 'config.php'
];
$this->assertSame([], array_diff($expected, $result));
$this->assertSame([], array_diff($expected, $result));
$result = $Folder->findRecursive('(config|woot)\.php', true);
$result = $Folder->findRecursive('(config|bootstrap)\.php', true);
$expected = [
CORE_PATH . 'config' . DS . 'bootstrap.php',
CORE_PATH . 'config' . DS . 'config.php'
];
$this->assertSame($expected, $result);

0 comments on commit 7ba80f4

Please sign in to comment.
You can’t perform that action at this time.