Skip to content

Commit a1b6aa4

Browse files
committed
don't use a fixed date fixture when assertions depend on relative times
1 parent 7308912 commit a1b6aa4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Tests/Iterator/RealIteratorTestCase.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,8 @@ public static function setUpBeforeClass(): void
7272
file_put_contents(self::toAbsolute('test.php'), str_repeat(' ', 800));
7373
file_put_contents(self::toAbsolute('test.py'), str_repeat(' ', 2000));
7474

75-
touch(self::toAbsolute('foo/bar.tmp'), strtotime('2005-10-15'));
76-
touch(self::toAbsolute('test.php'), strtotime('2005-10-15'));
75+
touch(self::toAbsolute('foo/bar.tmp'), strtotime('-19 years'));
76+
touch(self::toAbsolute('test.php'), strtotime('-19 years'));
7777

7878
if (FinderTest::class === static::class) {
7979
$fs = new Filesystem();

0 commit comments

Comments
 (0)