Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix test.
  • Loading branch information
ADmad committed May 7, 2017
1 parent a7952c2 commit 7ba80f4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/TestCase/Filesystem/FolderTest.php
Expand Up @@ -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);
Expand Down

0 comments on commit 7ba80f4

Please sign in to comment.