tests/Http/RequestTest.php
/**
     * Tests shorthand file property access.
     */
Tests shorthand file property access.
Tests shorthand file property access .
public function testGetFile()
    {
        $this->assertEquals(UPLOAD_ERR_INI_SIZE, $this->request->file('file1', 'error'));
        $this->assertEquals(UPLOAD_ERR_INI_SIZE, $this->request->file('file1')['error']);
    }
public function testGetFile ( ) { $ this -> assertEquals ( UPLOAD_ERR_INI_SIZE , $ this -> request -> file ( 'file1' , 'error' ) ) ; $ this -> assertEquals ( UPLOAD_ERR_INI_SIZE , $ this -> request -> file ( 'file1' ) [ 'error' ] ) ; }
Tests shorthand file property access.
Tests shorthand file property access .