public function format($uri = null, array $params = []) { $obj = RequestUri::detect(); if ($uri && $this->router) { $obj->setRequest($this->router->format($uri, $params)); } else { $obj->setRequest($uri)->setParams($params); } return (string) $obj; }
private function initDefaultUri() { return $this->setUri(Uri::detect()); }
public function suffixesContainingPartsWithDotsButNoSuffix() { $uri = new Uri('http://test.com/test.something/test'); $this->assert(!$uri->getSuffix(), 'No suffix should have been set.'); }