Skip to content

Commit

Permalink
Remove superfluous code.
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianbergmann committed Mar 8, 2011
1 parent 1b817cf commit daddb41
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 0 additions & 4 deletions src/framework/Router.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,6 @@ public function route(Request $request)
throw new RuntimeException;
}

if (isset($parts[0]) && $parts[0] == '') {
array_shift($parts);
}

if (count($parts) % 2 != 0) {
throw new RuntimeException;
}
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/framework/FrontControllerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class FrontControllerTest extends PHPUnit_Framework_TestCase
*/
public function testDispatchingWorksCorrectly()
{
$request = new Request(array('REQUEST_URI' => '/test/'));
$request = new Request(array('REQUEST_URI' => '/test'));
$response = new Response;

$frontController = new FrontController(
Expand Down

0 comments on commit daddb41

Please sign in to comment.