Ejemplo n.º 1
0
 /**
  * @return void
  */
 public function testNormalizePath()
 {
     $url = new Url(['path' => '/foo/bar/baz//abc/', 'query' => ['x' => 'y'], 'fragment' => 'z']);
     $path = $url->normalizePath()->build();
     $this->assertSame('/foo/bar/baz/abc?x=y#z', $path);
 }