/**
  * Add a route
  *
  * @param   webservices.rest.srv.RestRoute route
  * @return  webservices.rest.srv.RestRoute The added route
  */
 public function addRoute(RestRoute $route)
 {
     $verb = $route->getVerb();
     if (!isset($this->routes[$verb])) {
         $this->routes[$verb] = [];
     }
     $this->routes[$verb][] = $route;
     return $route;
 }
 public function verb_is_uppercased()
 {
     $r = new RestRoute('Get', '/resource', $this->handler, $this->target, null, null);
     $this->assertEquals('GET', $r->getVerb());
 }