/** * @expectedException InvalidArgumentException */ public function testGetPBKDFFail() { $factory = new Factory(); $factory->getPBKDF('someGibberish'); }