PHP Class Kraken\_Unit\Util\Support\ArraySupportTest

Inheritance: extends Kraken\Test\TUnit
Afficher le fichier Open project: kraken-php/framework

Méthodes publiques

Méthode Description
createArraySupportMock ( ) : ArraySupport
getArray ( ) : array
getFlattenedArray ( array $array ) : array
testApiExists_ReturnsFalse_ForComplexKey_WhichDoesNotExist ( )
testApiExists_ReturnsFalse_ForSimpleKey_WhichDoesNotExist ( )
testApiExists_ReturnsTrue_ForComplexKey_WhichExistsDirectly ( )
testApiExists_ReturnsTrue_ForComplexKey_WhichExistsIndirectly ( )
testApiExists_ReturnsTrue_ForSimpleKey_WhichExists ( )
testApiExpand_ExpandsArray ( )
testApiFlatten_FlattensArray ( )
testApiGet_ReturnsArray_ForEmptyStringKey ( )
testApiGet_ReturnsArray_ForNullKey ( )
testApiGet_ReturnsDefault_ForNonExistingElement ( )
testApiGet_ReturnsElement_ForDottedKeyIsSingleRealKey ( )
testApiGet_ReturnsElement_ForExistingElement ( )
testApiGet_ReturnsElement_ForExistingKey_WhenKeyIsDottedAndSingleRealKey ( )
testApiGet_ReturnsNull_ForNonExistingElement ( )
testApiIsEmpty_ReturnsFalse_ForNonEmptyArray ( )
testApiIsEmpty_ReturnsTrue_ForEmptyArray ( )
testApiMerge_MergesMultipleArraysPreservingDotNotation ( )
testApiMerge_ReturnsEmptyArray_ForEmptyArray ( )
testApiMerge_ReturnsSameArray_WhenOnlyOneArrayPassed ( )
testApiNormalizeKey_NormalizesKey ( )
testApiNormalizeKey_ReturnsNull_ForNullKey ( )
testApiRemove_DoesNothing_ForNonExistingKey ( )
testApiRemove_EmptiesArray_ForEmptyStringKey ( )
testApiRemove_EmptiesArray_ForNullKey ( )
testApiRemove_RemovesElement_ForExistingKey ( )
testApiReplace_ReplacesMultipleArraysPreservingDotNotation ( )
testApiReplace_ReturnsEmptyArray_ForEmptyArray ( )
testApiReplace_ReturnsSameArray_WhenOnlyOneArrayPassed ( )
testApiSet_ReplacesArray_ForEmptyStringKey ( )
testApiSet_ReplacesArray_ForNullKey ( )
testApiSet_ReturnsSameArray ( )
testApiSet_SetsValue_ForExistingKey ( )
testApiSet_SetsValue_ForNonExistingKey ( )

Method Details

createArraySupportMock() public méthode

public createArraySupportMock ( ) : ArraySupport
Résultat Kraken\Util\Support\ArraySupport

getArray() public méthode

public getArray ( ) : array
Résultat array

getFlattenedArray() public méthode

public getFlattenedArray ( array $array ) : array
$array array
Résultat array

testApiExists_ReturnsFalse_ForComplexKey_WhichDoesNotExist() public méthode

testApiExists_ReturnsFalse_ForSimpleKey_WhichDoesNotExist() public méthode

testApiExists_ReturnsTrue_ForComplexKey_WhichExistsDirectly() public méthode

testApiExists_ReturnsTrue_ForComplexKey_WhichExistsIndirectly() public méthode

testApiExists_ReturnsTrue_ForSimpleKey_WhichExists() public méthode

testApiExpand_ExpandsArray() public méthode

testApiFlatten_FlattensArray() public méthode

testApiGet_ReturnsArray_ForEmptyStringKey() public méthode

testApiGet_ReturnsArray_ForNullKey() public méthode

testApiGet_ReturnsDefault_ForNonExistingElement() public méthode

testApiGet_ReturnsElement_ForDottedKeyIsSingleRealKey() public méthode

testApiGet_ReturnsElement_ForExistingElement() public méthode

testApiGet_ReturnsElement_ForExistingKey_WhenKeyIsDottedAndSingleRealKey() public méthode

testApiGet_ReturnsNull_ForNonExistingElement() public méthode

testApiIsEmpty_ReturnsFalse_ForNonEmptyArray() public méthode

testApiIsEmpty_ReturnsTrue_ForEmptyArray() public méthode

testApiMerge_MergesMultipleArraysPreservingDotNotation() public méthode

testApiMerge_ReturnsEmptyArray_ForEmptyArray() public méthode

testApiMerge_ReturnsSameArray_WhenOnlyOneArrayPassed() public méthode

testApiNormalizeKey_NormalizesKey() public méthode

testApiNormalizeKey_ReturnsNull_ForNullKey() public méthode

testApiRemove_DoesNothing_ForNonExistingKey() public méthode

testApiRemove_EmptiesArray_ForEmptyStringKey() public méthode

testApiRemove_EmptiesArray_ForNullKey() public méthode

testApiRemove_RemovesElement_ForExistingKey() public méthode

testApiReplace_ReplacesMultipleArraysPreservingDotNotation() public méthode

testApiReplace_ReturnsEmptyArray_ForEmptyArray() public méthode

testApiReplace_ReturnsSameArray_WhenOnlyOneArrayPassed() public méthode

testApiSet_ReplacesArray_ForEmptyStringKey() public méthode

testApiSet_ReplacesArray_ForNullKey() public méthode

testApiSet_ReturnsSameArray() public méthode

testApiSet_SetsValue_ForExistingKey() public méthode

testApiSet_SetsValue_ForNonExistingKey() public méthode