public function testMethodLimitReached()
 {
     try {
         $this->assertFalse(Method::get($this->key, "/v1/key", "POST", "-1 day", 9)->checkLimit());
     } catch (\Phalcon\Exception $e) {
         $this->assertEquals("Limit reached", $e->getMessage());
     }
 }
 public function checkMethodLimitByKey($key, $method_annotation)
 {
     // check key has exceed to access resource
     Method::get($key, $this->request->get("_url"), $this->request->getMethod(), $method_annotation[0]["increment"], $method_annotation[0]["limit"])->checkLimit();
 }