You are here

public static function LargeFileContent::withMegabytes in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/mikey179/vfsStream/src/main/php/org/bovigo/vfs/content/LargeFileContent.php \org\bovigo\vfs\content\LargeFileContent::withMegabytes()

create large file with given size in megabyte

Parameters

int $megabyte:

Return value

LargeFileContent

1 call to LargeFileContent::withMegabytes()
LargeFileContent::withGigabytes in vendor/mikey179/vfsStream/src/main/php/org/bovigo/vfs/content/LargeFileContent.php
create large file with given size in gigabyte

File

vendor/mikey179/vfsStream/src/main/php/org/bovigo/vfs/content/LargeFileContent.php, line 67

Class

LargeFileContent
File content implementation to mock large files.

Namespace

org\bovigo\vfs\content

Code

public static function withMegabytes($megabyte) {
  return self::withKilobytes($megabyte * 1024);
}