/** * @test */ public function testGetLastAccessTime() { $file = new Filesystem(); $dir = static::getTempPath(__FUNCTION__); mkdir($dir); $file1 = rand(1, 10) . rand(0, getrandmax()); $path1 = $dir . DIRECTORY_SEPARATOR . $file1; file_put_contents($path1, __FUNCTION__, FILE_APPEND); $time = time(); $fileatime = $file->getLastAccessTime($path1); $this->assertEquals($time, $fileatime); }