Skip to content

Commit

Permalink
Fix closure PSR2 CS
Browse files Browse the repository at this point in the history
  • Loading branch information
bcrowe committed Jan 16, 2015
1 parent 59e7295 commit 581dfa8
Showing 1 changed file with 28 additions and 7 deletions.
35 changes: 28 additions & 7 deletions tests/RouteCollectionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,34 @@ public function testSetsRoutesViaConvenienceMethodsWithClosures()
{
$router = new RouteCollection;

$router->get('/route/{wildcard}', function () { return 'get'; });
$router->post('/route/{wildcard}', function () { return 'post'; });
$router->put('/route/{wildcard}', function () { return 'put'; });
$router->patch('/route/{wildcard}', function () { return 'patch'; });
$router->delete('/route/{wildcard}', function () { return 'delete'; });
$router->head('/route/{wildcard}', function () { return 'head'; });
$router->options('/route/{wildcard}', function () { return 'options'; });
$router->get('/route/{wildcard}', function () {
return 'get';

});
$router->post('/route/{wildcard}', function () {
return 'post';

});
$router->put('/route/{wildcard}', function () {
return 'put';

});
$router->patch('/route/{wildcard}', function () {
return 'patch';

});
$router->delete('/route/{wildcard}', function () {
return 'delete';

});
$router->head('/route/{wildcard}', function () {
return 'head';

});
$router->options('/route/{wildcard}', function () {
return 'options';

});

$routes = (new \ReflectionClass($router))->getProperty('routes');
$routes->setAccessible(true);
Expand Down

0 comments on commit 581dfa8

Please sign in to comment.