PHP Class Faker\Test\Provider\BaseTest

Inheritance: extends PHPUnit_Framework_TestCase
Afficher le fichier Open project: fzaninotto/faker

Méthodes publiques

Méthode Description
regexifyBasicDataProvider ( )
regexifyDataProvider ( )
testAsciifyReturnsSameStringWhenItContainsNoStarSign ( )
testAsciifyReturnsStringWithStarSignsReplacedByAsciiChars ( )
testBothifyAsterisk ( )
testBothifyCombinesNumerifyAndLexify ( )
testBothifyUtf ( )
testLexifyReturnsSameStringWhenItContainsNoQuestionMark ( )
testLexifyReturnsStringWithQuestionMarksReplacedByLetters ( )
testNumberBetween ( )
testNumberBetweenAcceptsZeroAsMax ( )
testNumerifyCanGenerateALargeNumberOfDigits ( )
testNumerifyReturnsSameStringWhenItContainsNoHashSign ( )
testNumerifyReturnsStringWithHashSignsReplacedByDigits ( )
testNumerifyReturnsStringWithPercentageSignsReplacedByDigits ( )
testNumerifyReturnsStringWithPercentageSignsReplacedByNotNullDigits ( )
testOptionalAllowsChainingMethodCall ( )
testOptionalAllowsChainingPropertyAccess ( )
testOptionalAllowsChainingProviderCallRandomlyReturnNull ( )
testOptionalPercentageAndWeight ( )
testOptionalReturnsNullWhenCalledWithWeight0 ( )
testOptionalReturnsProviderValueWhenCalledWithWeight1 ( )
testRandomAsciiReturnsAsciiCharacter ( )
testRandomAsciiReturnsSingleCharacter ( )
testRandomAsciiReturnsString ( )
testRandomDigitNotNullReturnsNotNullDigit ( )
testRandomDigitNotReturnsValidDigit ( )
testRandomDigitReturnsDigit ( )
testRandomDigitReturnsInteger ( )
testRandomElementReturnsElementFromArray ( )
testRandomElementReturnsElementFromAssociativeArray ( )
testRandomElementReturnsNullWhenArrayEmpty ( )
testRandomElements ( )
testRandomElementsThrowsWhenRequestingTooManyKeys ( )
testRandomFloat ( )
testRandomLetterReturnsLowercaseLetter ( )
testRandomLetterReturnsSingleLetter ( )
testRandomLetterReturnsString ( )
testRandomNumberAcceptsStrictParamToEnforceNumberSize ( )
testRandomNumberReturnsDigit ( )
testRandomNumberReturnsInteger ( )
testRandomNumberThrowsExceptionWhenCalledWithAMax ( )
testRandomNumberThrowsExceptionWhenCalledWithATooHighNumberOfDigits ( )
testRegexifyBasicFeatures ( $input, $output, $message )
testRegexifySupportedRegexSyntax ( $pattern, $message )
testShuffleArrayLeavesTheOriginalArrayUntouched ( )
testShuffleArrayReturnsADifferentArrayThanTheOriginal ( )
testShuffleArrayReturnsAnArrayOfTheSameSize ( )
testShuffleArrayReturnsAnArrayWithSameElements ( )
testShuffleArraySupportsEmptyArrays ( )
testShuffleReturnsArrayWhenPassedAnArrayArgument ( )
testShuffleReturnsStringWhenPassedAStringArgument ( )
testShuffleStringLeavesTheOriginalStringUntouched ( )
testShuffleStringReturnsADifferentStringThanTheOriginal ( )
testShuffleStringReturnsAnStringOfTheSameSize ( )
testShuffleStringReturnsAnStringWithSameElements ( )
testShuffleStringSupportsEmptyStrings ( )
testShuffleThrowsExceptionWhenPassedAnInvalidArgument ( )
testUniqueAllowsChainingMethodCall ( )
testUniqueAllowsChainingPropertyAccess ( )
testUniqueCanResetUniquesWhenPassedTrueAsArgument ( )
testUniqueReturnsOnlyUniqueValues ( )
testUniqueThrowsExceptionWhenNoUniqueValueCanBeGenerated ( )
testValidAllowsChainingMethodCall ( )
testValidAllowsChainingPropertyAccess ( )
testValidReturnsOnlyValidValues ( )
testValidThrowsExceptionWhenNoValidValueCanBeGenerated ( )
testValidThrowsExceptionWhenParameterIsNotCollable ( )

Method Details

regexifyBasicDataProvider() public méthode

regexifyDataProvider() public méthode

testAsciifyReturnsSameStringWhenItContainsNoStarSign() public méthode

testAsciifyReturnsStringWithStarSignsReplacedByAsciiChars() public méthode

testBothifyAsterisk() public méthode

public testBothifyAsterisk ( )

testBothifyCombinesNumerifyAndLexify() public méthode

testBothifyUtf() public méthode

public testBothifyUtf ( )

testLexifyReturnsSameStringWhenItContainsNoQuestionMark() public méthode

testLexifyReturnsStringWithQuestionMarksReplacedByLetters() public méthode

testNumberBetween() public méthode

public testNumberBetween ( )

testNumberBetweenAcceptsZeroAsMax() public méthode

testNumerifyCanGenerateALargeNumberOfDigits() public méthode

testNumerifyReturnsSameStringWhenItContainsNoHashSign() public méthode

testNumerifyReturnsStringWithHashSignsReplacedByDigits() public méthode

testNumerifyReturnsStringWithPercentageSignsReplacedByDigits() public méthode

testNumerifyReturnsStringWithPercentageSignsReplacedByNotNullDigits() public méthode

testOptionalAllowsChainingMethodCall() public méthode

testOptionalAllowsChainingPropertyAccess() public méthode

testOptionalAllowsChainingProviderCallRandomlyReturnNull() public méthode

testOptionalPercentageAndWeight() public méthode

testOptionalReturnsNullWhenCalledWithWeight0() public méthode

testOptionalReturnsProviderValueWhenCalledWithWeight1() public méthode

testRandomAsciiReturnsAsciiCharacter() public méthode

testRandomAsciiReturnsSingleCharacter() public méthode

testRandomAsciiReturnsString() public méthode

testRandomDigitNotNullReturnsNotNullDigit() public méthode

testRandomDigitNotReturnsValidDigit() public méthode

testRandomDigitReturnsDigit() public méthode

testRandomDigitReturnsInteger() public méthode

testRandomElementReturnsElementFromArray() public méthode

testRandomElementReturnsElementFromAssociativeArray() public méthode

testRandomElementReturnsNullWhenArrayEmpty() public méthode

testRandomElements() public méthode

public testRandomElements ( )

testRandomElementsThrowsWhenRequestingTooManyKeys() public méthode

testRandomFloat() public méthode

public testRandomFloat ( )

testRandomLetterReturnsLowercaseLetter() public méthode

testRandomLetterReturnsSingleLetter() public méthode

testRandomLetterReturnsString() public méthode

testRandomNumberAcceptsStrictParamToEnforceNumberSize() public méthode

testRandomNumberReturnsDigit() public méthode

testRandomNumberReturnsInteger() public méthode

testRandomNumberThrowsExceptionWhenCalledWithAMax() public méthode

testRandomNumberThrowsExceptionWhenCalledWithATooHighNumberOfDigits() public méthode

testRegexifyBasicFeatures() public méthode

public testRegexifyBasicFeatures ( $input, $output, $message )

testRegexifySupportedRegexSyntax() public méthode

public testRegexifySupportedRegexSyntax ( $pattern, $message )

testShuffleArrayLeavesTheOriginalArrayUntouched() public méthode

testShuffleArrayReturnsADifferentArrayThanTheOriginal() public méthode

testShuffleArrayReturnsAnArrayOfTheSameSize() public méthode

testShuffleArrayReturnsAnArrayWithSameElements() public méthode

testShuffleArraySupportsEmptyArrays() public méthode

testShuffleReturnsArrayWhenPassedAnArrayArgument() public méthode

testShuffleReturnsStringWhenPassedAStringArgument() public méthode

testShuffleStringLeavesTheOriginalStringUntouched() public méthode

testShuffleStringReturnsADifferentStringThanTheOriginal() public méthode

testShuffleStringReturnsAnStringOfTheSameSize() public méthode

testShuffleStringReturnsAnStringWithSameElements() public méthode

testShuffleStringSupportsEmptyStrings() public méthode

testShuffleThrowsExceptionWhenPassedAnInvalidArgument() public méthode

testUniqueAllowsChainingMethodCall() public méthode

testUniqueAllowsChainingPropertyAccess() public méthode

testUniqueCanResetUniquesWhenPassedTrueAsArgument() public méthode

testUniqueReturnsOnlyUniqueValues() public méthode

testUniqueThrowsExceptionWhenNoUniqueValueCanBeGenerated() public méthode

testValidAllowsChainingMethodCall() public méthode

testValidAllowsChainingPropertyAccess() public méthode

testValidReturnsOnlyValidValues() public méthode

testValidThrowsExceptionWhenNoValidValueCanBeGenerated() public méthode

testValidThrowsExceptionWhenParameterIsNotCollable() public méthode