Skip to content

Commit e8a3784

Browse files
better test to illustrate duplicate problem
1 parent 3029e23 commit e8a3784

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/test/QafooLabs/Refactoring/Domain/Model/DirectoryTest.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,11 @@ public function testRemovesDuplicates()
3636
$directory = new Directory($dir, $dir);
3737
$files = $directory->findAllPhpFilesRecursivly();
3838

39+
$foundFiles = array();
3940
foreach ($files as $f => $file) {
40-
$this->assertEquals('vfs://project/src/Foo/Bar.php', $f);
41+
$foundFiles[] = $f;
4142
}
43+
44+
$this->assertEquals(array('vfs://project/src/Foo/Bar.php'), $foundFiles);
4245
}
4346
}

0 commit comments

Comments
 (0)