public function testKeyLimitReached()
 {
     try {
         $this->assertFalse(Key::get($this->key, "-1 day", 9)->checkLimit());
     } catch (\Phalcon\Exception $e) {
         $this->assertEquals("Limit reached", $e->getMessage());
     }
 }
 public function checkKeyLimitOnClass($key, $limit_annotation)
 {
     // check limit for key to access all resources
     Key::get($key, $limit_annotation["key"]["increment"], $limit_annotation["key"]["limit"])->checkLimit();
 }