예제 #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());
 }
예제 #2
0
파일: Manager.php 프로젝트: mardy-git/hmac
 /**
  * Sets the private key in the item
  *
  * @param string $key
  * @return Manager
  */
 public function key($key)
 {
     $this->entity->setKey($key);
     return $this;
 }