getModifiedTime() public method

Returns file modification time
public getModifiedTime ( ) : integer
return integer
Esempio n. 1
0
 /**
  * @group FileService
  */
 public function testSends304WithIfNoneMatchHeadersIncludedAndDeflationEnabled()
 {
     $file = new \Elgg\FileService\File();
     $file->setFile($this->file);
     $request = $this->createRequest($file);
     $request->headers->set('if_none_match', '"' . $this->file->getModifiedTime() . '-gzip"');
     $response = $this->handler->getResponse($request);
     $this->assertEquals(304, $response->getStatusCode());
 }
Esempio n. 2
0
 /**
  * @group FileService
  */
 public function testCanSetModifiedTime()
 {
     $time = $this->file->getModifiedTime();
     $this->file->setModifiedTime();
     $this->assertNotEquals($time, $this->file->getModifiedTime());
 }