Skip to content

Commit 291f0ad

Browse files
committed
fixed
1 parent fe7a73a commit 291f0ad

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

src/TestSuite/TestCase.php

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -75,17 +75,13 @@ protected function createSomeBackups(): array
7575
{
7676
$timestamp = time();
7777

78-
foreach ([
79-
'sql' => $timestamp - 2,
80-
'sql.bz2' => $timestamp - 1,
81-
'sql.gz' => $timestamp,
82-
] as $extension => $timestamp) {
78+
foreach (['sql.gz', 'sql.bz2', 'sql'] as $extension) {
8379
$file = $this->createBackup('backup_test_' . (string)$timestamp . '.' . $extension);
84-
touch($file, $timestamp);
80+
touch($file, $timestamp--);
8581
$files[] = $file;
8682
}
8783

88-
return $files;
84+
return array_reverse($files);
8985
}
9086

9187
/**

0 commit comments

Comments
 (0)