Fix failing tests by 1 second difference

This commit is contained in:
Ceeram 2011-12-05 17:11:41 +01:00
parent e4e26a852b
commit 09a623e07b

View file

@ -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();
}