[Finder] Force set access time in test
This commit is contained in:
parent
91fb5fae36
commit
c5ec51abdf
@ -35,9 +35,10 @@ class SortableIteratorTest extends RealIteratorTestCase
|
|||||||
case SortableIterator::SORT_BY_ACCESSED_TIME:
|
case SortableIterator::SORT_BY_ACCESSED_TIME:
|
||||||
touch(self::toAbsolute('.git'));
|
touch(self::toAbsolute('.git'));
|
||||||
sleep(1);
|
sleep(1);
|
||||||
file_get_contents(self::toAbsolute('.bar'));
|
touch(self::toAbsolute('.bar'), time());
|
||||||
break;
|
break;
|
||||||
case SortableIterator::SORT_BY_CHANGED_TIME:
|
case SortableIterator::SORT_BY_CHANGED_TIME:
|
||||||
|
sleep(1);
|
||||||
file_put_contents(self::toAbsolute('test.php'), 'foo');
|
file_put_contents(self::toAbsolute('test.php'), 'foo');
|
||||||
sleep(1);
|
sleep(1);
|
||||||
file_put_contents(self::toAbsolute('test.py'), 'foo');
|
file_put_contents(self::toAbsolute('test.py'), 'foo');
|
||||||
|
Reference in New Issue
Block a user