/** * @covers PasswordLib\Random\Factory::registerSource * @covers PasswordLib\Random\Factory::getSources * @expectedException InvalidArgumentException */ public function testRegisterSourceFail() { $factory = new Factory(); $factory->registerSource('mock', 'stdclass'); }