Ejemplo n.º 1
0
Archivo: UrlTest.php Proyecto: weew/url
 public function test_add_path()
 {
     $url = new Url();
     $url->setPath('foo');
     $url->addPath('bar');
     $this->assertEquals('/foo/bar', $url->getPath());
     $url->addPath('/baz');
     $this->assertEquals('/foo/bar/baz', $url->getPath());
 }