/** * 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()); }
/** * Sets the private key in the item * * @param string $key * @return Manager */ public function key($key) { $this->entity->setKey($key); return $this; }