Skip to content

Commit

Permalink
rename tests
Browse files Browse the repository at this point in the history
  • Loading branch information
IngeniozIT committed Dec 13, 2023
1 parent aa03269 commit a9c68f4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/RouteTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -133,9 +133,9 @@ public function testCanUseCustomPatterns(Route $route): void
public static function providerRoutePatterns(): array
{
return [
'from the parameter' => [Route::get('/foo/{bar:\d+}/{baz:\d+}', 'foo')],
'from the path' => [Route::get('/foo/{bar:\d+}/{baz:\d+}', 'foo')],
'from the patterns parameter' => [Route::get('/foo/{bar}/{baz}', 'foo', patterns: ['bar' => '\d+', 'baz' => '\d+'])],
'parameter takes precedence over patterns parameter' => [Route::get('/foo/{bar:\d+}/{baz:\d+}', 'foo', patterns: ['bar' => '[a-z]+', 'baz' => '\d+'])],
'path takes precedence over the patterns parameter' => [Route::get('/foo/{bar:\d+}/{baz:\d+}', 'foo', patterns: ['bar' => '[a-z]+', 'baz' => '\d+'])],
];
}

Expand Down

0 comments on commit a9c68f4

Please sign in to comment.