public function boot(APITester $I) { $this->page1 = ['slug' => 'test1', 'title' => 'Test 1', 'content' => '# My content']; $this->page1Update = ['slug' => 'test1', 'title' => 'Test 1 updated', 'content' => '# My updated content']; $this->page1UpdateIncomplete = ['slug' => 'test1']; parent::boot($I); }
public static function setUpBeforeClass() { // generate dummy path self::$random_string = hash('sha256', time() . getmypid() + rand()); // generate dummy data file self::$data_filepath = tempnam(sys_get_temp_dir(), 'copy-unit-test.tmp'); // pump data into dummy file $fh = fopen(self::$data_filepath, 'a+b'); while (ftell($fh) < 1048576) { for ($i = 0; $i < 100; $i++) { fwrite($fh, rand(0, getrandmax())); } fwrite($fh, str_repeat('Copy.com=', 1024)); } fclose($fh); }
public function boot(APITester $I) { parent::boot($I); }