Kraken\Filesystem\FilesystemInterface::getTimestamp PHP Method

getTimestamp() public method

Get timestamp of a file.
public getTimestamp ( string $path ) : string
$path string
return string
    public function getTimestamp($path);

Usage Example

コード例 #1
0
 /**
  *
  */
 public function testApiGetTimestamp_ThrowsException_WhenGetMetadataOnModelThrowsException()
 {
     $path = 'path';
     $expected = new Exception();
     $ex = null;
     $this->expect('getTimestamp', [$path])->willThrow($expected);
     try {
         $this->fs->getTimestamp($path);
     } catch (Exception $ex) {
     }
     $this->assertInstanceOf(ReadException::class, $ex);
     $this->assertSame($expected, $ex->getPrevious());
 }