Commit Graph

21 Commits

Author SHA1 Message Date
PJ Dietz 79c4799a7b Clean up tests for routes 2020-08-14 07:38:38 -04:00
PJ Dietz fec5a4d405 Remove RouteInterface 2020-08-14 07:24:00 -04:00
PJ Dietz f542aaf3a9 Normalize length of dividers 2020-08-13 07:38:00 -04:00
PJ Dietz 8649090774 Fix visibility for setUp, tearDown to match PHPUnit base class 2020-08-13 07:13:14 -04:00
PJ Dietz 967b6ac2a4 Add type hints for Routes 2020-08-09 13:58:24 -04:00
PJ Dietz 4485675c11 Use ProphecyTrait in tests with Prophecy mocks 2020-08-08 10:59:46 -04:00
PJ Dietz 645bcf227c Upgrade PHPUnit to v8 2019-06-17 16:04:55 -04:00
PJ Dietz 64628c4065 Move MethodMap to Route namespace 2018-06-22 15:54:01 -04:00
PJ Dietz ac8bdce037 Remove MethodMapInterface 2018-06-22 15:10:50 -04:00
PJ Dietz 50f1004be5 Test cleanup 2017-08-03 14:29:54 -04:00
PJ Dietz 36a170bcff Upgrade PHPUnit to ^6 2017-07-22 15:21:41 -04:00
PJ Dietz 36bb00dc1a Refactor route tests 2016-05-21 08:45:55 -04:00
PJ Dietz 139e3c43da Template Routes do not match slash prefix variables that contain slashes as the non-first character 2015-05-25 10:17:42 -04:00
PJ Dietz 61fd0f3354 TemplateRoute more throughly implements URI Templates as defined in RFC 6570
Template support:
- Simple strings /{var}
- Reserved string /{+var}
- Multiple variables per expression /{hello,larry}
- Dot-prefixes /{.filename,extension}
- Slash-prefiex {/path,to,here}
- Explosion {/paths*}, /cats/{ids*} explode to list arrays
2015-05-13 21:53:27 -04:00
PJ Dietz 1bb93434b2 Store variables from URI as uriVariables attributes 2015-05-12 17:58:35 -04:00
PJ Dietz 37af085ec5 Pass DispatcherInterface to RouteFactory on construction 2015-05-10 11:46:51 -04:00
PJ Dietz 36263ba3de Update routes to match new MiddlewareInterface 2015-05-10 09:05:05 -04:00
PJ Dietz 1d30fcbbba Remove RouteTable, revise RouteFactory, 2015-05-08 01:03:07 -04:00
PJ Dietz 09ea17d349 Update TemplateRoute 2015-05-08 00:25:15 -04:00
PJ Dietz 6d9adfc7ee Update Template Route to accept one parameter for the default variable pattern or map of patterns 2015-04-06 19:55:04 -04:00
PJ Dietz e4ef1a8cb3 Add TemplateRoute 2015-04-02 20:53:54 -04:00