tests/Http/RequestTest.php
/**
     * Tests the ability to get unified input.
     */
Tests the ability to get unified input.
Tests the ability to get unified input .
public function testGetInput()
    {
        $this->assertEquals('super secure', $this->request->input('password'));
        $this->assertEquals('50', $this->request->input('id'));
        $this->assertEquals('Jane Doe', $this->request->input('name'));
        $this->assertTrue($this->request->input('nonexistent', true));
    }
public function testGetInput ( ) { $ this -> assertEquals ( 'super secure' , $ this -> request -> input ( 'password' ) ) ; $ this -> assertEquals ( '50' , $ this -> request -> input ( 'id' ) ) ; $ this -> assertEquals ( 'Jane Doe' , $ this -> request -> input ( 'name' ) ) ; $ this -> assertTrue ( $ this -> request -> input ( 'nonexistent' , true ) ) ; }
Tests the ability to get unified input.
Tests the ability to get unified input .
// Retrieve independent GET/POST variables // Retrieve overridden variables (POST has priority over GET) // Defaults