Exemplo n.º 1
0
 /**
  * Testing the isEncodable method
  */
 public function testIsEncodable()
 {
     $array = $this->getDummyHmacData();
     $this->assertFalse($this->entity->isEncodable());
     $this->entity->setData($array['data']);
     $this->entity->setKey($array['key']);
     $this->entity->setTime($array['time']);
     $this->assertTrue($this->entity->isEncodable());
 }
Exemplo n.º 2
0
 /**
  * Sets the private key in the item
  *
  * @param string $key
  * @return Manager
  */
 public function key($key)
 {
     $this->entity->setKey($key);
     return $this;
 }