mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 09:06:17 +00:00
Fix failing tests by 1 second difference
This commit is contained in:
parent
e4e26a852b
commit
09a623e07b
1 changed files with 2 additions and 1 deletions
|
@ -309,10 +309,11 @@ class FileTest extends CakeTestCase {
|
|||
* @return void
|
||||
*/
|
||||
public function testLastAccess() {
|
||||
$ts = time();
|
||||
$someFile = new File(TMP . 'some_file.txt', false);
|
||||
$this->assertFalse($someFile->lastAccess());
|
||||
$this->assertTrue($someFile->open());
|
||||
$this->assertEquals($someFile->lastAccess(), time());
|
||||
$this->assertTrue($someFile->lastAccess() >= $ts);
|
||||
$someFile->close();
|
||||
$someFile->delete();
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue