public function testReturnsFormattedUriFromRequestObjectWithParameterNotAsLastParameter() { $request = new Comments("guardians-of-the-galaxy-2014"); $formattedUri = UriBuilder::format($request); $this->assertContains("guardians-of-the-galaxy-2014", $formattedUri); $this->assertContains("/comments", $formattedUri); }
public function getUrl() { return UriBuilder::format($this); }