Skip to content

Commit

Permalink
avoid shared state between tests
Browse files Browse the repository at this point in the history
avoid a minor bug (missing leading slash in Result::$url)
  • Loading branch information
mindplay-dk committed Jul 14, 2016
1 parent 0d2c630 commit d617d62
Show file tree
Hide file tree
Showing 3 changed files with 228 additions and 149 deletions.
20 changes: 10 additions & 10 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/Router.php
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ public function resolve($method, $url)
$match = $this->match($url);

$result = new Result();
$result->url = $match ? $match->url : $url;
$result->url = $match ? $match->url : '/' . ltrim($url, '/');
$result->method = $method;

if (!$match) {
Expand Down
Loading

0 comments on commit d617d62

Please sign in to comment.