You are here

class FlowUnitCase in One Click Upload 7.2

Hierarchy

  • class \Unit\FlowUnitCase extends \Unit\PHPUnit_Framework_TestCase

Expanded class hierarchy of FlowUnitCase

File

flowphp/test/Unit/FlowUnitCase.php, line 8

Namespace

Unit
View source
class FlowUnitCase extends \PHPUnit_Framework_TestCase {

  /**
   * Test request
   *
   * @var array
   */
  protected $requestArr;

  /**
   * $_FILES
   *
   * @var array
   */
  protected $filesArr;
  protected function setUp() {
    $this->requestArr = new ArrayObject(array(
      'flowChunkNumber' => 1,
      'flowChunkSize' => 1048576,
      'flowCurrentChunkSize' => 10,
      'flowTotalSize' => 100,
      'flowIdentifier' => '13632-prettifyjs',
      'flowFilename' => 'prettify.js',
      'flowRelativePath' => 'home/prettify.js',
      'flowTotalChunks' => 42,
    ));
    $this->filesArr = array(
      'file' => array(
        'name' => 'someFile.gif',
        'type' => 'image/gif',
        'size' => '10',
        'tmp_name' => '/tmp/abc1234',
        'error' => UPLOAD_ERR_OK,
      ),
    );
  }
  protected function tearDown() {
    $_REQUEST = array();
    $_FILES = array();
  }

}

Members

Namesort descending Modifiers Type Description Overrides
FlowUnitCase::$filesArr protected property * $_FILES * *
FlowUnitCase::$requestArr protected property * Test request * *
FlowUnitCase::setUp protected function 3
FlowUnitCase::tearDown protected function