Skip to content

Commit

Permalink
[Finder] Force set access time in test
Browse files Browse the repository at this point in the history
  • Loading branch information
Nyholm committed Nov 1, 2020
1 parent 26f63b8 commit 5b9106a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Tests/Iterator/SortableIteratorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,10 @@ public function testAccept($mode, $expected)
case SortableIterator::SORT_BY_ACCESSED_TIME:
touch(self::toAbsolute('.git'));
sleep(1);
file_get_contents(self::toAbsolute('.bar'));
touch(self::toAbsolute('.bar'), time());
break;
case SortableIterator::SORT_BY_CHANGED_TIME:
sleep(1);
file_put_contents(self::toAbsolute('test.php'), 'foo');
sleep(1);
file_put_contents(self::toAbsolute('test.py'), 'foo');
Expand Down

0 comments on commit 5b9106a

Please sign in to comment.