Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix other failing test by 1 second difference

  • Loading branch information...
commit 3b8990ffca90fd79b4cb51ca2676424d6f55a655 1 parent 09a623e
@ceeram ceeram authored
Showing with 3 additions and 2 deletions.
  1. +3 −2 lib/Cake/Test/Case/Utility/FileTest.php
View
5 lib/Cake/Test/Case/Utility/FileTest.php
@@ -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();
}
Please sign in to comment.
Something went wrong with that request. Please try again.