Viewing File: /opt/alt/tests/alt-php83-pecl-uploadprogress_2.0.2-1.el8/tests/uploadprogress_get_info_basic.phpt

--TEST--
uploadprogress_get_info - Returns info for uploading file

--SKIPIF--
<?php
if (!extension_loaded('uploadprogress')) exit('skip extension not loaded');

--FILE--
<?php
ini_set('uploadprogress.file.filename_template', dirname(__FILE__) . '/mocks/get_info/upt_%s.txt');

$info = uploadprogress_get_info('basic');
var_export($info);

--EXPECTF--
array (
  'upload_id' => 'file001',
  'fieldname' => 'uploadFile',
  'filename' => 'example.txt',
  'time_start' => '1579893044',
  'time_last' => '30',
  'speed_average' => '300',
  'speed_last' => '300',
  'bytes_uploaded' => '1592342',
  'bytes_total' => '3000000',
  'files_uploaded' => '1',
  'est_sec' => '45',
)
Back to Directory File Manager
<