getModifiedTime() 공개 메소드

Returns file modification time
public getModifiedTime ( ) : integer
리턴 integer
예제 #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());
 }
예제 #2
0
파일: ElggFileTest.php 프로젝트: elgg/elgg
 /**
  * @group FileService
  */
 public function testCanSetModifiedTime()
 {
     $time = $this->file->getModifiedTime();
     $this->file->setModifiedTime();
     $this->assertNotEquals($time, $this->file->getModifiedTime());
 }