tests/Http/RequestTest.php
/**
     * Tests the ability to retrieve uploaded files as arrays.
     */
Tests the ability to retrieve uploaded files as arrays.
Tests the ability to retrieve uploaded files as arrays .
public function testGetFiles()
    {
        $this->assertEquals(1, count($this->request->files()));
        $this->assertEquals(UPLOAD_ERR_INI_SIZE, $this->request->files()['file1']['error']);
    }
public function testGetFiles ( ) { $ this -> assertEquals ( 1 , count ( $ this -> request -> files ( ) ) ) ; $ this -> assertEquals ( UPLOAD_ERR_INI_SIZE , $ this -> request -> files ( ) [ 'file1' ] [ 'error' ] ) ; }
Tests the ability to retrieve uploaded files as arrays.
Tests the ability to retrieve uploaded files as arrays .