Skip to content
This repository has been archived by the owner on Sep 19, 2022. It is now read-only.

Commit

Permalink
It's already covered by another test
Browse files Browse the repository at this point in the history
  • Loading branch information
krzysztof-magosa committed Oct 18, 2014
1 parent 24e0802 commit 8596945
Showing 1 changed file with 0 additions and 26 deletions.
26 changes: 0 additions & 26 deletions tests/RouterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -161,32 +161,6 @@ function ($collection) {
$this->assertEquals($expectedParameters, $result->getParameters());
}

/**
* @expectedException \KM\Saffron\Exception\RouteAlreadyRegistered
* @expectedExceptionMessage Route with name home is already registered
*/
public function testDuplicateOfNamedRoute()
{
$factory = new RouterFactory(
function ($collection) {
$collection->route('home')
->setUri('/');

$collection->route('home')
->setUri('/home');
}
);

$router = $factory
->setDebug(true)
->build();

$request = new Request();
$request->setUri('/test');

$router->match($request);
}

/**
* @dataProvider providerAssemble
*/
Expand Down

0 comments on commit 8596945

Please sign in to comment.