PHP Class Hackzilla\PasswordGenerator\Tests\Generator\HumanPasswordGeneratorTest

Inheritance: extends PHPUnit_Framework_TestCase
Show file Open project: hackzilla/password-generator

Public Methods

Method Description
fixedPasswordsProvider ( )
getEmptyWordList ( ) : string
getSimpleWordList ( ) : string
lengthExceptionProvider ( ) : array
lengthProvider ( ) : array
setup ( )
testEmptyException ( )
testGeneratePassword ( $length )
testGeneratePasswordException ( )
testGeneratePasswordFixedLength ( $length )
testGeneratePasswordImpossiblePasswordLengthException ( )
testGeneratePasswordWithSeparator ( $length )
testGeneratePasswords ( $length )
testGenerateWordList ( )
testGetPasswordLength ( )
testLengthException ( $length )
testMaxWordLength ( )
testMinWordLength ( )
testRandomWord ( )
testRandomWordException ( )
testUnknownWordList ( )
testWordCount ( )
testWordList ( )
testWordListException ( )
testWordSeparator ( )

Private Methods

Method Description
makePassword ( $word, $length, $separator ) : string

Method Details

fixedPasswordsProvider() public method

getEmptyWordList() public method

public getEmptyWordList ( ) : string
return string

getSimpleWordList() public method

public getSimpleWordList ( ) : string
return string

lengthExceptionProvider() public method

public lengthExceptionProvider ( ) : array
return array

lengthProvider() public method

public lengthProvider ( ) : array
return array

setup() public method

public setup ( )

testEmptyException() public method

public testEmptyException ( )

testGeneratePassword() public method

public testGeneratePassword ( $length )
$length

testGeneratePasswordException() public method

testGeneratePasswordFixedLength() public method

public testGeneratePasswordFixedLength ( $length )
$length

testGeneratePasswordImpossiblePasswordLengthException() public method

testGeneratePasswordWithSeparator() public method

public testGeneratePasswordWithSeparator ( $length )
$length

testGeneratePasswords() public method

public testGeneratePasswords ( $length )
$length

testGenerateWordList() public method

testGetPasswordLength() public method

testLengthException() public method

public testLengthException ( $length )

testMaxWordLength() public method

public testMaxWordLength ( )

testMinWordLength() public method

public testMinWordLength ( )

testRandomWord() public method

public testRandomWord ( )

testRandomWordException() public method

testUnknownWordList() public method

public testUnknownWordList ( )

testWordCount() public method

public testWordCount ( )

testWordList() public method

public testWordList ( )

testWordListException() public method

testWordSeparator() public method

public testWordSeparator ( )