mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 02:56:15 +00:00
Fix other failing test by 1 second difference
This commit is contained in:
parent
09a623e07b
commit
3b8990ffca
1 changed files with 3 additions and 2 deletions
|
@ -324,12 +324,13 @@ class FileTest extends CakeTestCase {
|
|||
* @return void
|
||||
*/
|
||||
public function testLastChange() {
|
||||
$ts = time();
|
||||
$someFile = new File(TMP . 'some_file.txt', false);
|
||||
$this->assertFalse($someFile->lastChange());
|
||||
$this->assertTrue($someFile->open('r+'));
|
||||
$this->assertEquals($someFile->lastChange(), time());
|
||||
$this->assertTrue($someFile->lastChange() >= $ts);
|
||||
$someFile->write('something');
|
||||
$this->assertEquals($someFile->lastChange(), time());
|
||||
$this->assertTrue($someFile->lastChange() >= $ts);
|
||||
$someFile->close();
|
||||
$someFile->delete();
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue