We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fe7a73a commit 291f0adCopy full SHA for 291f0ad
src/TestSuite/TestCase.php
@@ -75,17 +75,13 @@ protected function createSomeBackups(): array
75
{
76
$timestamp = time();
77
78
- foreach ([
79
- 'sql' => $timestamp - 2,
80
- 'sql.bz2' => $timestamp - 1,
81
- 'sql.gz' => $timestamp,
82
- ] as $extension => $timestamp) {
+ foreach (['sql.gz', 'sql.bz2', 'sql'] as $extension) {
83
$file = $this->createBackup('backup_test_' . (string)$timestamp . '.' . $extension);
84
- touch($file, $timestamp);
+ touch($file, $timestamp--);
85
$files[] = $file;
86
}
87
88
- return $files;
+ return array_reverse($files);
89
90
91
/**
0 commit comments