Skip to content

Commit 1bf07fc

Browse files
rgsonfrankdejonge
authored andcommitted
Fix time-related tests failing in 2021
Two tests related to Unix file listings are failing now in 2021 due to the expectation that a timestamp without an explicit year is from 2020. The expectation is adjusted to always use the current year. This solution was already used for a different file in the same dataset.
1 parent 13352d2 commit 1bf07fc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/FtpTests.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -662,7 +662,7 @@ public function expectedUnixListings()
662662
[
663663
'type' => 'dir',
664664
'path' => 'folder',
665-
'timestamp' => 1606226340,
665+
'timestamp' => DateTime::createFromFormat('M d H:i', 'Nov 24 13:59')->getTimestamp(),
666666
],
667667
[
668668
'type' => 'file',
@@ -693,7 +693,7 @@ public function expectedUnixListings()
693693
[
694694
'type' => 'dir',
695695
'path' => 'folder',
696-
'timestamp' => 1606226340,
696+
'timestamp' => DateTime::createFromFormat('M d H:i', 'Nov 24 13:59')->getTimestamp(),
697697
],
698698
[
699699
'type' => 'file',

0 commit comments

Comments
 (0)