/** * Ensures that the vector can be set / returned * * @return void */ public function testGetSetVector() { $filter = new BlockCipherEncryption(array('key' => 'testkey')); $filter->setVector('testvect'); $this->assertEquals('testvect', $filter->getVector()); $this->setExpectedException('\\Zend\\Filter\\Exception\\InvalidArgumentException'); $output = $filter->encrypt('test'); }
/** * Ensures that the vector can be set / returned * * @return void */ public function testGetSetVector() { $filter = new BlockCipherEncryption(array('key' => 'testkey')); $filter->setVector('1234567890123456'); $this->assertEquals('1234567890123456', $filter->getVector()); }