Skip to content

Commit

Permalink
Revert "Check result of file touch"
Browse files Browse the repository at this point in the history
This reverts commit 4727772.
  • Loading branch information
t0mmie committed May 7, 2021
1 parent 4727772 commit 56e0f81
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions tests/Naneau/ProjectVersioner/Test/Reader/FinderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
use Naneau\ProjectVersioner\Reader\Finder\Contents as ContentsReader;

use Symfony\Component\Finder\Finder;
use Exception;

class FinderTest extends \PHPUnit\Framework\TestCase
{
Expand Down Expand Up @@ -63,13 +62,8 @@ public function testEmptyNamesWithFinder(): void
$timeThree = time();
$timeFour = $timeThree - 10;

if (!touch($directory . '/DirectoryOne/FileThree.php', $timeThree)) {
throw new Exception('Failed to update touch time to ' . $timeThree . ' for file "FileThree.php"');
}

if (!touch($directory . '/DirectoryOne/FileFour.txt', $timeFour)) {
throw new Exception('Failed to update touch time to ' . $timeFour . ' for file "FileFour.txt"');
}
touch($directory . '/DirectoryOne/FileThree.php', $timeThree);
touch($directory . '/DirectoryOne/FileFour.txt', $timeFour);

self::assertEquals($timeThree, $versionerPhp->get($directory));
self::assertEquals($timeFour, $versionerTxt->get($directory));
Expand Down

0 comments on commit 56e0f81

Please sign in to comment.