Hackzilla\PasswordGenerator\Tests\Generator\HybridPasswordGeneratorTest::testGeneratePassword PHP Method

testGeneratePassword() public method

public testGeneratePassword ( $segmentLength, $segmentCount, $segmentSeparator, $regExp )
$segmentLength
$segmentCount
$segmentSeparator
$regExp
    public function testGeneratePassword($segmentLength, $segmentCount, $segmentSeparator, $regExp)
    {
        $this->_object->setOptionValue(HybridPasswordGenerator::OPTION_UPPER_CASE, true)->setOptionValue(HybridPasswordGenerator::OPTION_LOWER_CASE, true)->setOptionValue(HybridPasswordGenerator::OPTION_NUMBERS, true)->setOptionValue(HybridPasswordGenerator::OPTION_AVOID_SIMILAR, true);
        $this->_object->setSegmentLength($segmentLength);
        $this->_object->setSegmentCount($segmentCount);
        $this->_object->setSegmentSeparator($segmentSeparator);
        $this->assertRegExp($regExp, $this->_object->generatePassword());
    }