/** * @covers CryptLib\Random\Factory::registerSource * @covers CryptLib\Random\Factory::getSources */ public function testRegisterSource() { $factory = new Factory(); $factory->registerSource('mock', 'CryptLibTest\\Mocks\\Random\\Source'); $test = $factory->getSources(); $this->assertTrue(in_array('CryptLibTest\\Mocks\\Random\\Source', $test)); }