예제 #1
0
 /**
  * testLastAccess method
  *
  * @return void
  */
 public function testLastAccess()
 {
     $someFile = new File(TMP . 'some_file.txt', false);
     $this->assertFalse($someFile->lastAccess());
     $this->assertTrue($someFile->open());
     $this->assertWithinMargin($someFile->lastAccess(), time(), 2);
     $someFile->close();
     $someFile->delete();
 }