PJ Dietz
|
381310a88a
|
Exclude integration tests from code coverage
|
2015-03-11 21:33:59 -04:00 |
PJ Dietz
|
f08691fff1
|
Allow template variables to be named as alpha followed by alphanumeric and underscore.
|
2015-03-08 14:59:32 -04:00 |
PJ Dietz
|
fdeff57a79
|
Prevent Router from trying to call respond on non responses.
|
2015-02-22 17:17:56 -05:00 |
PJ Dietz
|
1a5712a417
|
Split tests into unit and integration test suites
|
2015-02-22 14:05:05 -05:00 |
PJ Dietz
|
812012bdbf
|
Propagate $request and $args to route and errorHandler callables
|
2015-02-22 12:01:21 -05:00 |
PJ Dietz
|
d785e21fee
|
Propagate arguments to callable in HandlerUnpacker::unpack
|
2015-02-22 09:08:15 -05:00 |
PJ Dietz
|
64ef9cc4e7
|
Update copyright and rename a couple tests
|
2015-02-21 16:01:06 -05:00 |
PJ Dietz
|
b582fcf546
|
Deprecate RouteBuilder
|
2015-02-21 15:59:27 -05:00 |
PJ Dietz
|
614da5f2ff
|
Update tests for messages.
|
2015-02-21 15:59:08 -05:00 |
PJ Dietz
|
d4ad282abc
|
Update tests for Client and Handler
|
2015-02-21 14:51:42 -05:00 |
PJ Dietz
|
5dacb232ec
|
Updates to Router
- Add Router::add method
- Refactor Router to contain one RouteTable
|
2015-02-21 14:11:53 -05:00 |
PJ Dietz
|
259dd0baa1
|
Remove RouteTable::addRoutes
|
2015-02-21 08:14:38 -05:00 |
PJ Dietz
|
1c82908eeb
|
Refactor Router to use RouteTables
|
2015-02-21 08:10:58 -05:00 |
PJ Dietz
|
14195355e3
|
Add RouteTable
|
2015-02-21 07:13:09 -05:00 |
PJ Dietz
|
3d68a0af86
|
Add RouteFactory
|
2015-02-20 07:45:39 -05:00 |
PJ Dietz
|
04561076d5
|
Update Router to work with updated Routes and ErrorHandlers
Deprecate:
- Router::setStaticRoute
- Router::setPrefixRoute
|
2015-02-19 22:04:34 -05:00 |
PJ Dietz
|
4deac492dd
|
Update BaseRoute to use HandlerUnpacker
|
2015-02-19 19:59:33 -05:00 |
PJ Dietz
|
5dc5cdab06
|
Add HandlerUnpacker
|
2015-02-19 19:51:42 -05:00 |
PJ Dietz
|
d34607a0d9
|
Update TemplateRoute test
|
2015-02-18 21:54:58 -05:00 |
PJ Dietz
|
deff504942
|
Update BaseRoute test
|
2015-02-18 21:54:25 -05:00 |
PJ Dietz
|
c38659a310
|
Update TemplateRoute tests
|
2015-02-18 21:39:07 -05:00 |
PJ Dietz
|
6859bd9707
|
Update RegexRoute tests
|
2015-02-18 21:21:56 -05:00 |
PJ Dietz
|
1b17ef5d0a
|
Revise BaseRoute tests
|
2015-02-18 20:48:12 -05:00 |
PJ Dietz
|
63fd00fff0
|
Update PrefixRoute tests
|
2015-02-18 20:47:45 -05:00 |
PJ Dietz
|
38aaf26943
|
Update StaticRoute tests to use Prophecy
|
2015-02-18 20:47:00 -05:00 |
PJ Dietz
|
9498542f30
|
Allow Route target to be a callable, string, or instance
|
2015-02-18 20:17:09 -05:00 |
PJ Dietz
|
38639d9ee4
|
Update TemplateRouter to better match templates with variables in more complicated paths
|
2015-02-02 17:08:25 -05:00 |
PJ Dietz
|
bcaa0ee7b7
|
Use random ports for Client test to reduce false errors on Travis
|
2015-01-21 13:49:17 -05:00 |
PJ Dietz
|
84044d5057
|
Re-add converting HttpExceptions to responses in Handler
|
2015-01-21 11:03:01 -05:00 |
PJ Dietz
|
1a88e0273d
|
Use registered 404 error handler when no route matches in Router::respond
|
2015-01-21 09:51:14 -05:00 |
PJ Dietz
|
ca2c8625ec
|
Store PrefixRoutes to a separate array.
Prioritize routes in the order static, prefix, everything else.
|
2015-01-02 13:13:08 -05:00 |
PJ Dietz
|
caef817535
|
Do not allow routing to continue after a dispatched StaticRoute returns null
|
2015-01-02 12:31:02 -05:00 |
PJ Dietz
|
78fe57d736
|
Store StaticRoutes to separate hash array in Router
Add StaticRouteInterface
|
2015-01-02 12:00:30 -05:00 |
PJ Dietz
|
666f45977e
|
Merge branch 'eatonphil-master' into prefix
|
2015-01-01 12:43:41 -05:00 |
PJ Dietz
|
9eec436ad4
|
Add error handlers to Router
Move catching HttpExceptions and translating into responses from Handler to Router
|
2015-01-01 12:41:53 -05:00 |
PJ Dietz
|
6d499a6643
|
Add PrefixRoute
|
2014-12-29 13:09:51 -05:00 |
PJ Dietz
|
8b5f9e40a6
|
Update phpunit. Allow setting port for ClientTest as an environment variable.
|
2014-12-29 12:49:38 -05:00 |
PJ Dietz
|
75088499b8
|
Ensure $args propagate from Router to Handlers
|
2014-08-02 17:42:16 -04:00 |
PJ Dietz
|
512897effd
|
Prefer apache_request_headers when reading request headers.
Apache does not pass the Authorization header through to PHP as
$_SERVER["HTTP_AUTHORIZATION"], so reading from $_SERVER is not viable
with Apache.
|
2014-07-28 12:43:29 -04:00 |
PJ Dietz
|
d1a77c5454
|
Allow * wildcard at end of URI template
|
2014-07-27 16:37:24 -04:00 |
PJ Dietz
|
1c5d95e727
|
Router::getResponse() now returns null to allow better nesting
Runs tests that output responses in process isolation
|
2014-07-26 19:05:38 -04:00 |
PJ Dietz
|
c8a65f4248
|
Test captures groups in RegexRouteTest
|
2014-07-26 14:57:31 -04:00 |
PJ Dietz
|
4db7c8da7d
|
Add Request::getFormFields. Add Test for sending form-encoded request
|
2014-07-26 11:49:15 -04:00 |
PJ Dietz
|
297c4aa2e8
|
Update tests for Routes
|
2014-07-26 06:15:17 -04:00 |
PJ Dietz
|
ea05633dfb
|
Update RouterTest
|
2014-07-26 05:48:54 -04:00 |
PJ Dietz
|
4d31e2e977
|
Update ResponseBuilder tests. Fix name of ResponseTest
|
2014-07-26 05:36:42 -04:00 |
PJ Dietz
|
1222e61ebb
|
Update Handler tests
|
2014-07-26 05:20:22 -04:00 |
PJ Dietz
|
4ae6e5f2e4
|
Fix issue in Response when setting headers in constructor
Update tests for Response
|
2014-07-26 01:47:05 -04:00 |
PJ Dietz
|
69b9bb51aa
|
Rewrite RequestTest
|
2014-07-26 01:21:09 -04:00 |
PJ Dietz
|
2d9373e287
|
Test cURL errors in Client
|
2014-07-25 23:35:17 -04:00 |