public function testMinGeneratePassword($length)
{
$this->_object->setOptionValue(ComputerPasswordGenerator::OPTION_UPPER_CASE, true)->setOptionValue(ComputerPasswordGenerator::OPTION_LOWER_CASE, true)->setOptionValue(ComputerPasswordGenerator::OPTION_NUMBERS, true)->setOptionValue(ComputerPasswordGenerator::OPTION_SYMBOLS, true)->setOptionValue(ComputerPasswordGenerator::OPTION_AVOID_SIMILAR, true)->setMinimumCount(RequirementPasswordGenerator::OPTION_UPPER_CASE, 2)->setMinimumCount(RequirementPasswordGenerator::OPTION_LOWER_CASE, 2)->setMinimumCount(RequirementPasswordGenerator::OPTION_NUMBERS, 2)->setMinimumCount(RequirementPasswordGenerator::OPTION_SYMBOLS, 2);
$this->_object->setLength($length);
$this->assertTrue($this->_object->validLimits());
$passwords = $this->_object->generatePasswords(5);
$this->assertCount(5, $passwords);
foreach ($passwords as $password) {
$this->assertSame($length, \strlen($password));
}
}