/** * @expectedException \InvalidArgumentException * @expectedExceptionMessage IV must be exactly */ public function testEncryptWithInvalidIvLengthThrowsException() { $this->_instance->encrypt('FooBar ', 'wrong-iv-length'); }