Skip to content

Commit

Permalink
Fix other failing test by 1 second difference
Browse files Browse the repository at this point in the history
  • Loading branch information
ceeram committed Dec 5, 2011
1 parent 09a623e commit 3b8990f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/Cake/Test/Case/Utility/FileTest.php
Expand Up @@ -324,12 +324,13 @@ public function testLastAccess() {
* @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();
}
Expand Down

0 comments on commit 3b8990f

Please sign in to comment.