summaryrefslogtreecommitdiffstats
path: root/build/integration/features/bootstrap/BasicStructure.php
diff options
context:
space:
mode:
Diffstat (limited to 'build/integration/features/bootstrap/BasicStructure.php')
-rw-r--r--build/integration/features/bootstrap/BasicStructure.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/build/integration/features/bootstrap/BasicStructure.php b/build/integration/features/bootstrap/BasicStructure.php
index df46d0b1983..c2a826521ad 100644
--- a/build/integration/features/bootstrap/BasicStructure.php
+++ b/build/integration/features/bootstrap/BasicStructure.php
@@ -313,6 +313,13 @@ trait BasicStructure {
file_put_contents("../../data/$user/files" . "$filename", "$text");
}
+ public function createFileSpecificSize($user, $name, $size){
+ $file = fopen("data/" . "$name", 'w');
+ fseek($file, $size - 1 ,SEEK_CUR);
+ fwrite($file,'a'); // write a dummy char at SIZE position
+ fclose($file);
+ }
+
/**
* @BeforeSuite
*/