Kraken\Filesystem\FilesystemInterface::getSize PHP Метод

getSize() публичный Метод

Returns size of a file.
public getSize ( $path ) : integer
$path
Результат integer
    public function getSize($path);

Usage Example

Пример #1
0
 /**
  *
  */
 public function testApiGetSize_ThrowsException_WhenGetSizeOnModelThrowsException()
 {
     $path = 'path';
     $expected = new Exception();
     $ex = null;
     $this->expect('getSize', [$path])->willThrow($expected);
     try {
         $this->fs->getSize($path);
     } catch (Exception $ex) {
     }
     $this->assertInstanceOf(ReadException::class, $ex);
     $this->assertSame($expected, $ex->getPrevious());
 }