Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Sets access and modification time of file
<?php touch(string $filename, ?int $mtime = null, ?int $atime = null): bool
<?php         $lockFile = self::TEMPORARY_FOLDER.DIRECTORY_SEPARATOR.'only.lock';



        if (! file_exists($lockFile)) {

            touch($lockFile);

        }

    }
<?php use PHPUnit\Framework\ExpectationFailedException;



beforeEach(function () {

    touch($this->tempFile = sys_get_temp_dir().'/fake.file');

});



afterEach(function () {
<?php use PHPUnit\Framework\ExpectationFailedException;



beforeEach(function () {

    touch($this->tempFile = sys_get_temp_dir().'/fake.file');

});



afterEach(function () {
<?php use PHPUnit\Framework\ExpectationFailedException;



beforeEach(function () {

    touch($this->tempFile = sys_get_temp_dir().'/fake.file');

});



afterEach(function () {