tests/Http/RequestTest.php
/**
     * Checks proper formatting and generation of URL with a specified path.
     */
Checks proper formatting and generation of URL with a specified path.
Checks proper formatting and generation of URL with a specified path .
public function testUrlWithPath()
    {
        $this->assertEquals('https://example.com/test', $this->request->url('test'));
        $this->assertEquals('https://example.com/test', $this->request->url('/test'));
    }
public function testUrlWithPath ( ) { $ this -> assertEquals ( 'https://example.com/test' , $ this -> request -> url ( 'test' ) ) ; $ this -> assertEquals ( 'https://example.com/test' , $ this -> request -> url ( '/test' ) ) ; }
Checks proper formatting and generation of URL with a specified path.
Checks proper formatting and generation of URL with a specified path .