PHP Class Faker\Test\Provider\BaseTest

Inheritance: extends PHPUnit_Framework_TestCase
Mostra file Open project: fzaninotto/faker

Public Methods

Method 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 method

regexifyDataProvider() public method

testAsciifyReturnsSameStringWhenItContainsNoStarSign() public method

testAsciifyReturnsStringWithStarSignsReplacedByAsciiChars() public method

testBothifyAsterisk() public method

public testBothifyAsterisk ( )

testBothifyCombinesNumerifyAndLexify() public method

testBothifyUtf() public method

public testBothifyUtf ( )

testLexifyReturnsSameStringWhenItContainsNoQuestionMark() public method

testLexifyReturnsStringWithQuestionMarksReplacedByLetters() public method

testNumberBetween() public method

public testNumberBetween ( )

testNumberBetweenAcceptsZeroAsMax() public method

testNumerifyCanGenerateALargeNumberOfDigits() public method

testNumerifyReturnsSameStringWhenItContainsNoHashSign() public method

testNumerifyReturnsStringWithHashSignsReplacedByDigits() public method

testNumerifyReturnsStringWithPercentageSignsReplacedByDigits() public method

testNumerifyReturnsStringWithPercentageSignsReplacedByNotNullDigits() public method

testOptionalAllowsChainingMethodCall() public method

testOptionalAllowsChainingPropertyAccess() public method

testOptionalAllowsChainingProviderCallRandomlyReturnNull() public method

testOptionalPercentageAndWeight() public method

testOptionalReturnsNullWhenCalledWithWeight0() public method

testOptionalReturnsProviderValueWhenCalledWithWeight1() public method

testRandomAsciiReturnsAsciiCharacter() public method

testRandomAsciiReturnsSingleCharacter() public method

testRandomAsciiReturnsString() public method

testRandomDigitNotNullReturnsNotNullDigit() public method

testRandomDigitNotReturnsValidDigit() public method

testRandomDigitReturnsDigit() public method

testRandomDigitReturnsInteger() public method

testRandomElementReturnsElementFromArray() public method

testRandomElementReturnsElementFromAssociativeArray() public method

testRandomElementReturnsNullWhenArrayEmpty() public method

testRandomElements() public method

public testRandomElements ( )

testRandomElementsThrowsWhenRequestingTooManyKeys() public method

testRandomFloat() public method

public testRandomFloat ( )

testRandomLetterReturnsLowercaseLetter() public method

testRandomLetterReturnsSingleLetter() public method

testRandomLetterReturnsString() public method

testRandomNumberAcceptsStrictParamToEnforceNumberSize() public method

testRandomNumberReturnsDigit() public method

testRandomNumberReturnsInteger() public method

testRandomNumberThrowsExceptionWhenCalledWithAMax() public method

testRandomNumberThrowsExceptionWhenCalledWithATooHighNumberOfDigits() public method

testRegexifyBasicFeatures() public method

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

testRegexifySupportedRegexSyntax() public method

public testRegexifySupportedRegexSyntax ( $pattern, $message )

testShuffleArrayLeavesTheOriginalArrayUntouched() public method

testShuffleArrayReturnsADifferentArrayThanTheOriginal() public method

testShuffleArrayReturnsAnArrayOfTheSameSize() public method

testShuffleArrayReturnsAnArrayWithSameElements() public method

testShuffleArraySupportsEmptyArrays() public method

testShuffleReturnsArrayWhenPassedAnArrayArgument() public method

testShuffleReturnsStringWhenPassedAStringArgument() public method

testShuffleStringLeavesTheOriginalStringUntouched() public method

testShuffleStringReturnsADifferentStringThanTheOriginal() public method

testShuffleStringReturnsAnStringOfTheSameSize() public method

testShuffleStringReturnsAnStringWithSameElements() public method

testShuffleStringSupportsEmptyStrings() public method

testShuffleThrowsExceptionWhenPassedAnInvalidArgument() public method

testUniqueAllowsChainingMethodCall() public method

testUniqueAllowsChainingPropertyAccess() public method

testUniqueCanResetUniquesWhenPassedTrueAsArgument() public method

testUniqueReturnsOnlyUniqueValues() public method

testUniqueThrowsExceptionWhenNoUniqueValueCanBeGenerated() public method

testValidAllowsChainingMethodCall() public method

testValidAllowsChainingPropertyAccess() public method

testValidReturnsOnlyValidValues() public method

testValidThrowsExceptionWhenNoValidValueCanBeGenerated() public method

testValidThrowsExceptionWhenParameterIsNotCollable() public method