|
|
@@ -219,13 +219,13 @@ class ServerRequestTest extends TestCase
|
|
|
public function testGetPath()
|
|
|
{
|
|
|
$request = new ServerRequest(['url' => '']);
|
|
|
- $this->assertSame('', $request->getPath());
|
|
|
+ $this->assertSame('/', $request->getPath());
|
|
|
|
|
|
$request = new ServerRequest(['url' => 'some/path?one=something&two=else']);
|
|
|
- $this->assertEquals('some/path', $request->getPath());
|
|
|
+ $this->assertEquals('/some/path', $request->getPath());
|
|
|
|
|
|
$request = $request->withRequestTarget('/foo/bar?x=y');
|
|
|
- $this->assertEquals('foo/bar', $request->getPath());
|
|
|
+ $this->assertEquals('/foo/bar', $request->getPath());
|
|
|
}
|
|
|
|
|
|
/**
|