PHP Class VersionPress\Tests\Unit\IniSerializerTest

Inheritance: extends PHPUnit_Framework_TestCas\PHPUnit_Framework_TestCase
Afficher le fichier Open project: versionpress/versionpress

Méthodes publiques

Méthode Description
arraysAsSquareBrackets ( )
backslash_atTheEndOfString ( )
backslash_double ( )
backslash_single ( )
backslash_tripple ( )
dollarSignInsideQuotes ( )
doubleQuoteEscaping ( )
doubleQuoteEscapingAtTheEOL ( ) This tests one problematic aspect of parse_ini_string(), see WP-288.
doubleQuoteEscaping_HereDoc ( )
hashSignCommentInsideQuotes ( )
longString ( )
newLineHandlingInsideValues_CR ( )
newLineHandlingInsideValues_CRLF ( )
newLineHandlingInsideValues_LF ( )
newLineHandling_BlankLines ( )
newLineHandling_NewLineAfterStringMark ( )
nullValueSerializesCorrectly ( )
numericStringsSerializedAsStrings ( )
numericValues ( )
sectionWithDotInName ( )
semicolonCommentInsideQuotes ( )
serializationDoesntChangeTheOrder ( )
serializationDoesntChangeTypeOfNumericString ( )
serializationDoesntChangeTypeOfNumericStringInArray ( )
serializationDoesntChangeTypeOfNumericStringInSerializedData ( )
serializedArrayWithEscapedSpecialStrings ( )
serializedArrayWithNegativeInteger ( )
serializedArrayWithSpecialStrings ( $str )
serializedArrayWithString ( )
serializedBoolean ( )
serializedComplexArray ( )
serializedCustomClassWithPrivateAttribute ( )
serializedCustomClassWithProtectedAttribute ( )
serializedCustomClassWithPublicAttribute ( )
serializedCustomClassWithSleepMethod ( )
serializedDouble ( )
serializedEmptyArray ( )
serializedEmptyStdClass ( )
serializedEvenMoreComplexArrayReferences ( )
serializedHTMLString ( )
serializedInteger ( )
serializedMoreComplexArrayReferences ( )
serializedMoreComplexClassReferences ( )
serializedMultipleDifferentData ( )
serializedMultipleDifferentObjects ( )
serializedMultipleSameObjects ( )
serializedNull ( )
serializedOption ( )
serializedReferenceToArray ( )
serializedReferenceToClass ( )
serializedStdClassWithAttribute ( )
serializedStdClassWithMultipleAttributes ( )
serializedString ( )
serializedStringWithNewLines ( )
smallestPossibleExample ( ) Simplest possible sectioned INI - anything less that this throws. A couple of required elements can be seen here:
specialCharacterInKey ( $specialCharacter )
specialCharacterInValue ( $specialCharacter )
specialCharactersAreTakenLiterally ( )
specialCharactersInSectionName ( $specialCharacter )
specialCharactersInValueProvider ( )
specialCharactersProvider ( )
stringContaingNullPlaceholderIsDeserializedToOriginalString ( )
strings ( )
throwsOnEmptySection ( )
throwsOnNonSectionedData ( )
twoSections ( )

Method Details

arraysAsSquareBrackets() public méthode

backslash_atTheEndOfString() public méthode

backslash_double() public méthode

public backslash_double ( )

backslash_single() public méthode

public backslash_single ( )

backslash_tripple() public méthode

public backslash_tripple ( )

dollarSignInsideQuotes() public méthode

doubleQuoteEscaping() public méthode

public doubleQuoteEscaping ( )

doubleQuoteEscapingAtTheEOL() public méthode

This tests one problematic aspect of parse_ini_string(), see WP-288.

doubleQuoteEscaping_HereDoc() public méthode

hashSignCommentInsideQuotes() public méthode

longString() public méthode

public longString ( )

newLineHandlingInsideValues_CR() public méthode

newLineHandlingInsideValues_CRLF() public méthode

newLineHandlingInsideValues_LF() public méthode

newLineHandling_BlankLines() public méthode

newLineHandling_NewLineAfterStringMark() public méthode

nullValueSerializesCorrectly() public méthode

numericStringsSerializedAsStrings() public méthode

numericValues() public méthode

public numericValues ( )

sectionWithDotInName() public méthode

semicolonCommentInsideQuotes() public méthode

serializationDoesntChangeTheOrder() public méthode

serializationDoesntChangeTypeOfNumericString() public méthode

serializationDoesntChangeTypeOfNumericStringInArray() public méthode

serializationDoesntChangeTypeOfNumericStringInSerializedData() public méthode

serializedArrayWithEscapedSpecialStrings() public méthode

serializedArrayWithNegativeInteger() public méthode

serializedArrayWithSpecialStrings() public méthode

serializedArrayWithString() public méthode

serializedBoolean() public méthode

public serializedBoolean ( )

serializedComplexArray() public méthode

serializedCustomClassWithPrivateAttribute() public méthode

serializedCustomClassWithProtectedAttribute() public méthode

serializedCustomClassWithPublicAttribute() public méthode

serializedCustomClassWithSleepMethod() public méthode

serializedDouble() public méthode

public serializedDouble ( )

serializedEmptyArray() public méthode

serializedEmptyStdClass() public méthode

serializedEvenMoreComplexArrayReferences() public méthode

serializedHTMLString() public méthode

serializedInteger() public méthode

public serializedInteger ( )

serializedMoreComplexArrayReferences() public méthode

serializedMoreComplexClassReferences() public méthode

serializedMultipleDifferentData() public méthode

serializedMultipleDifferentObjects() public méthode

serializedMultipleSameObjects() public méthode

serializedNull() public méthode

public serializedNull ( )

serializedOption() public méthode

public serializedOption ( )

serializedReferenceToArray() public méthode

serializedReferenceToClass() public méthode

serializedStdClassWithAttribute() public méthode

serializedStdClassWithMultipleAttributes() public méthode

serializedString() public méthode

public serializedString ( )

serializedStringWithNewLines() public méthode

smallestPossibleExample() public méthode

1. Section must be present 2. ... and non-empty 3. There must be a value, at least an empty string (key = throws) 4. There must be an empty line after the section

specialCharacterInKey() public méthode

public specialCharacterInKey ( $specialCharacter )

specialCharacterInValue() public méthode

public specialCharacterInValue ( $specialCharacter )

specialCharactersAreTakenLiterally() public méthode

specialCharactersInSectionName() public méthode

public specialCharactersInSectionName ( $specialCharacter )

specialCharactersInValueProvider() public méthode

specialCharactersProvider() public méthode

stringContaingNullPlaceholderIsDeserializedToOriginalString() public méthode

strings() public méthode

public strings ( )

throwsOnEmptySection() public méthode

throwsOnNonSectionedData() public méthode

twoSections() public méthode

public twoSections ( )