/** * Test the put method */ public function testPut() { $this->router->put('/put/route', function () { }); $routes = $this->router->getRoutesByMethod('PUT'); $this->assertEquals(1, count($routes)); }