/** * @see 0011156: big files can't be uploaded */ public function testCreateTempFileWithBigSize() { $size = (double) (3.8 * 1024.0 * 1024.0 * 1024.0); $tempFile = new Tinebase_Model_TempFile(array('id' => '123', 'session_id' => 'abc', 'time' => Tinebase_DateTime::now()->get(Tinebase_Record_Abstract::ISO8601LONG), 'path' => '/tmp/tmpfile', 'name' => 'tmpfile', 'type' => 'unknown', 'error' => 0, 'size' => $size)); $createdTempFile = $this->_instance->create($tempFile); $this->assertEquals(4080218931.0, $createdTempFile->size); }