Skip to content

Commit 5b9106a

Browse files
committed
[Finder] Force set access time in test
1 parent 26f63b8 commit 5b9106a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Tests/Iterator/SortableIteratorTest.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,10 @@ public function testAccept($mode, $expected)
3535
case SortableIterator::SORT_BY_ACCESSED_TIME:
3636
touch(self::toAbsolute('.git'));
3737
sleep(1);
38-
file_get_contents(self::toAbsolute('.bar'));
38+
touch(self::toAbsolute('.bar'), time());
3939
break;
4040
case SortableIterator::SORT_BY_CHANGED_TIME:
41+
sleep(1);
4142
file_put_contents(self::toAbsolute('test.php'), 'foo');
4243
sleep(1);
4344
file_put_contents(self::toAbsolute('test.py'), 'foo');

0 commit comments

Comments
 (0)