/** * @expectedException RuntimeException */ public function testGetModeFail() { $factory = new Factory(); $des = new \CryptLib\Cipher\Block\Cipher\DES('des'); $factory->getMode('blah', $des, 'foobarba', array()); }