tests/Http/RequestTest.php
/**
     * Tests the ability to get posted information.
     */
Tests the ability to get posted information.
Tests the ability to get posted information .
public function testGetPost()
    {
        $this->assertEquals('super secure', $this->request->post('password'));
        $this->assertEquals('nonexistent', $this->request->post('some_key', 'nonexistent'));
        $this->assertNull($this->request->post('id'));
    }
public function testGetPost ( ) { $ this -> assertEquals ( 'super secure' , $ this -> request -> post ( 'password' ) ) ; $ this -> assertEquals ( 'nonexistent' , $ this -> request -> post ( 'some_key' , 'nonexistent' ) ) ; $ this -> assertNull ( $ this -> request -> post ( 'id' ) ) ; }
Tests the ability to get posted information.
Tests the ability to get posted information .