Skip to content

Commit

Permalink
Asserting method of request
Browse files Browse the repository at this point in the history
  • Loading branch information
cjquinn committed Oct 10, 2016
1 parent a16aa45 commit f592349
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ public function testFakedRequestMethodParsed()
'_matchedRoute' => '/articles-patch'
];
$this->assertEquals($expected, $req->getAttribute('params'));
$this->assertEquals('PATCH', $req->getMethod());
};
$middleware = new RoutingMiddleware();
$middleware($request, $response, $next);
Expand Down

0 comments on commit f592349

Please sign in to comment.