\CollectionTest

Summary

Methods
Properties
Constants
testFirstReturnsFirstItemInCollection()
testFirstWithCallback()
testFirstWithCallbackAndDefault()
testFirstWithDefaultAndWithoutCallback()
testFirstWhere()
testLastReturnsLastItemInCollection()
testLastWithCallback()
testLastWithCallbackAndDefault()
testLastWithDefaultAndWithoutCallback()
testPopReturnsAndRemovesLastItemInCollection()
testShiftReturnsAndRemovesFirstItemInCollection()
testEmptyCollectionIsEmpty()
testEmptyCollectionIsNotEmpty()
testCollectionIsConstructed()
testCollectionShuffleWithSeed()
testGetArrayableItems()
testToJsonEncodesTheJsonSerializeResult()
testCastingToStringJsonEncodesTheToArrayResult()
testOffsetAccess()
testArrayAccessOffsetExists()
testArrayAccessOffsetGet()
testArrayAccessOffsetSet()
testArrayAccessOffsetUnset()
testForgetSingleKey()
testForgetArrayOfKeys()
testCountable()
testIterable()
testCachingIterator()
testFilter()
testHigherOrderKeyBy()
testHigherOrderUnique()
testHigherOrderFilter()
testWhere()
testWhereStrict()
testWhereIn()
testWhereInStrict()
testWhereNotIn()
testWhereNotInStrict()
testValues()
testFlatten()
testFlattenWithDepth()
testFlattenIgnoresKeys()
testMergeNull()
testMergeArray()
testMergeCollection()
testUnionNull()
testUnionArray()
testUnionCollection()
testDiffCollection()
testDiffNull()
testDiffKeys()
testDiffAssoc()
testEach()
testEachSpread()
testIntersectNull()
testIntersectCollection()
testIntersectByKeysNull()
testIntersectByKeys()
testUnique()
testUniqueWithCallback()
testUniqueStrict()
testCollapse()
testCollapseWithNestedCollections()
testCrossJoin()
testSort()
testSortWithCallback()
testSortBy()
testSortByString()
testSortByAlwaysReturnsAssoc()
testReverse()
testFlip()
testChunk()
testChunkWhenGivenZeroAsSize()
testChunkWhenGivenLessThanZero()
testEvery()
testExcept()
testExceptSelf()
testPluckWithArrayAndObjectValues()
testPluckWithArrayAccessValues()
testHas()
testImplode()
testTake()
testPut()
testPutWithNoKey()
testRandom()
testRandomOnEmptyCollection()
testTakeLast()
testMacroable()
testCanAddMethodsToProxy()
testMakeMethod()
testMakeMethodFromNull()
testMakeMethodFromCollection()
testMakeMethodFromArray()
testWrapWithScalar()
testWrapWithArray()
testWrapWithArrayable()
testWrapWithJsonable()
testWrapWithJsonSerialize()
testWrapWithCollectionClass()
testWrapWithCollectionSubclass()
testUnwrapCollection()
testUnwrapCollectionWithArray()
testUnwrapCollectionWithScalar()
testTimesMethod()
testConstructMakeFromObject()
testConstructMethod()
testConstructMethodFromNull()
testConstructMethodFromCollection()
testConstructMethodFromArray()
testConstructMethodFromObject()
testSplice()
testGetPluckValueWithAccessors()
testMap()
testMapSpread()
testFlatMap()
testMapToDictionary()
testMapToDictionaryWithNumericKeys()
testMapToGroups()
testMapToGroupsWithNumericKeys()
testMapWithKeys()
testMapWithKeysIntegerKeys()
testMapWithKeysMultipleRows()
testMapWithKeysCallbackKey()
testMapInto()
testNth()
testTransform()
testGroupByAttribute()
testGroupByAttributePreservingKeys()
testGroupByClosureWhereItemsHaveSingleGroup()
testGroupByClosureWhereItemsHaveSingleGroupPreservingKeys()
testGroupByClosureWhereItemsHaveMultipleGroups()
testGroupByClosureWhereItemsHaveMultipleGroupsPreservingKeys()
testGroupByMultiLevelAndClosurePreservingKeys()
testKeyByAttribute()
testKeyByClosure()
testContains()
testContainsStrict()
testContainsWithOperator()
testGettingSumFromCollection()
testCanSumValuesWithoutACallback()
testGettingSumFromEmptyCollection()
testValueRetrieverAcceptsDotNotation()
testPullRetrievesItemFromCollection()
testPullRemovesItemFromCollection()
testRejectRemovesElementsPassingTruthTest()
testSearchReturnsIndexOfFirstFoundItem()
testSearchReturnsFalseWhenItemIsNotFound()
testKeys()
testPaginate()
testPrepend()
testZip()
testPadPadsArrayWithValue()
testGettingMaxItemsFromCollection()
testGettingMinItemsFromCollection()
testOnly()
testGettingAvgItemsFromCollection()
testJsonSerialize()
testCombineWithArray()
testCombineWithCollection()
testConcatWithArray()
testConcatWithCollection()
testReduce()
testRandomThrowsAnExceptionUsingAmountBiggerThanCollectionSize()
testPipe()
testModeOnNullCollection()
testMode()
testModeValueByKey()
testWithMultipleModeValues()
testSliceOffset()
testSliceNegativeOffset()
testSliceOffsetAndLength()
testSliceOffsetAndNegativeLength()
testSliceNegativeOffsetAndLength()
testSliceNegativeOffsetAndNegativeLength()
testCollectionFromTraversable()
testCollectionFromTraversableWithKeys()
testSplitCollectionWithADivisableCount()
testSplitCollectionWithAnUndivisableCount()
testSplitCollectionWithCountLessThenDivisor()
testSplitEmptyCollection()
testHigherOrderCollectionMap()
testHigherOrderCollectionMapFromArrays()
testPartition()
testPartitionCallbackWithKey()
testPartitionByKey()
testPartitionWithOperators()
testPartitionPreservesKeys()
testPartitionEmptyCollection()
testHigherOrderPartition()
testTap()
testWhen()
testWhenDefault()
testUnless()
testUnlessDefault()
testHasReturnsValidResults()
testPutAddsItemToCollection()
testItThrowsExceptionWhenTryingToAccessNoProxyProperty()
testGetWithNullReturnsNull()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

testFirstReturnsFirstItemInCollection()

testFirstReturnsFirstItemInCollection() 

testFirstWithCallback()

testFirstWithCallback() 

testFirstWithCallbackAndDefault()

testFirstWithCallbackAndDefault() 

testFirstWithDefaultAndWithoutCallback()

testFirstWithDefaultAndWithoutCallback() 

testFirstWhere()

testFirstWhere() 

testLastReturnsLastItemInCollection()

testLastReturnsLastItemInCollection() 

testLastWithCallback()

testLastWithCallback() 

testLastWithCallbackAndDefault()

testLastWithCallbackAndDefault() 

testLastWithDefaultAndWithoutCallback()

testLastWithDefaultAndWithoutCallback() 

testPopReturnsAndRemovesLastItemInCollection()

testPopReturnsAndRemovesLastItemInCollection() 

testShiftReturnsAndRemovesFirstItemInCollection()

testShiftReturnsAndRemovesFirstItemInCollection() 

testEmptyCollectionIsEmpty()

testEmptyCollectionIsEmpty() 

testEmptyCollectionIsNotEmpty()

testEmptyCollectionIsNotEmpty() 

testCollectionIsConstructed()

testCollectionIsConstructed() 

testCollectionShuffleWithSeed()

testCollectionShuffleWithSeed() 

testGetArrayableItems()

testGetArrayableItems() 

testToJsonEncodesTheJsonSerializeResult()

testToJsonEncodesTheJsonSerializeResult() 

testCastingToStringJsonEncodesTheToArrayResult()

testCastingToStringJsonEncodesTheToArrayResult() 

testOffsetAccess()

testOffsetAccess() 

testArrayAccessOffsetExists()

testArrayAccessOffsetExists() 

testArrayAccessOffsetGet()

testArrayAccessOffsetGet() 

testArrayAccessOffsetSet()

testArrayAccessOffsetSet() 

testArrayAccessOffsetUnset()

testArrayAccessOffsetUnset() 

testForgetSingleKey()

testForgetSingleKey() 

testForgetArrayOfKeys()

testForgetArrayOfKeys() 

testCountable()

testCountable() 

testIterable()

testIterable() 

testCachingIterator()

testCachingIterator() 

testFilter()

testFilter() 

testHigherOrderKeyBy()

testHigherOrderKeyBy() 

testHigherOrderUnique()

testHigherOrderUnique() 

testHigherOrderFilter()

testHigherOrderFilter() 

testWhere()

testWhere() 

testWhereStrict()

testWhereStrict() 

testWhereIn()

testWhereIn() 

testWhereInStrict()

testWhereInStrict() 

testWhereNotIn()

testWhereNotIn() 

testWhereNotInStrict()

testWhereNotInStrict() 

testValues()

testValues() 

testFlatten()

testFlatten() 

testFlattenWithDepth()

testFlattenWithDepth() 

testFlattenIgnoresKeys()

testFlattenIgnoresKeys() 

testMergeNull()

testMergeNull() 

testMergeArray()

testMergeArray() 

testMergeCollection()

testMergeCollection() 

testUnionNull()

testUnionNull() 

testUnionArray()

testUnionArray() 

testUnionCollection()

testUnionCollection() 

testDiffCollection()

testDiffCollection() 

testDiffNull()

testDiffNull() 

testDiffKeys()

testDiffKeys() 

testDiffAssoc()

testDiffAssoc() 

testEach()

testEach() 

testEachSpread()

testEachSpread() 

testIntersectNull()

testIntersectNull() 

testIntersectCollection()

testIntersectCollection() 

testIntersectByKeysNull()

testIntersectByKeysNull() 

testIntersectByKeys()

testIntersectByKeys() 

testUnique()

testUnique() 

testUniqueWithCallback()

testUniqueWithCallback() 

testUniqueStrict()

testUniqueStrict() 

testCollapse()

testCollapse() 

testCollapseWithNestedCollections()

testCollapseWithNestedCollections() 

testCrossJoin()

testCrossJoin() 

testSort()

testSort() 

testSortWithCallback()

testSortWithCallback() 

testSortBy()

testSortBy() 

testSortByString()

testSortByString() 

testSortByAlwaysReturnsAssoc()

testSortByAlwaysReturnsAssoc() 

testReverse()

testReverse() 

testFlip()

testFlip() 

testChunk()

testChunk() 

testChunkWhenGivenZeroAsSize()

testChunkWhenGivenZeroAsSize() 

testChunkWhenGivenLessThanZero()

testChunkWhenGivenLessThanZero() 

testEvery()

testEvery() 

testExcept()

testExcept() 

testExceptSelf()

testExceptSelf() 

testPluckWithArrayAndObjectValues()

testPluckWithArrayAndObjectValues() 

testPluckWithArrayAccessValues()

testPluckWithArrayAccessValues() 

testHas()

testHas() 

testImplode()

testImplode() 

testTake()

testTake() 

testPut()

testPut() 

testPutWithNoKey()

testPutWithNoKey() 

testRandom()

testRandom() 

testRandomOnEmptyCollection()

testRandomOnEmptyCollection() 

testTakeLast()

testTakeLast() 

testMacroable()

testMacroable() 

testCanAddMethodsToProxy()

testCanAddMethodsToProxy() 

testMakeMethod()

testMakeMethod() 

testMakeMethodFromNull()

testMakeMethodFromNull() 

testMakeMethodFromCollection()

testMakeMethodFromCollection() 

testMakeMethodFromArray()

testMakeMethodFromArray() 

testWrapWithScalar()

testWrapWithScalar() 

testWrapWithArray()

testWrapWithArray() 

testWrapWithArrayable()

testWrapWithArrayable() 

testWrapWithJsonable()

testWrapWithJsonable() 

testWrapWithJsonSerialize()

testWrapWithJsonSerialize() 

testWrapWithCollectionClass()

testWrapWithCollectionClass() 

testWrapWithCollectionSubclass()

testWrapWithCollectionSubclass() 

testUnwrapCollection()

testUnwrapCollection() 

testUnwrapCollectionWithArray()

testUnwrapCollectionWithArray() 

testUnwrapCollectionWithScalar()

testUnwrapCollectionWithScalar() 

testTimesMethod()

testTimesMethod() 

testConstructMakeFromObject()

testConstructMakeFromObject() 

testConstructMethod()

testConstructMethod() 

testConstructMethodFromNull()

testConstructMethodFromNull() 

testConstructMethodFromCollection()

testConstructMethodFromCollection() 

testConstructMethodFromArray()

testConstructMethodFromArray() 

testConstructMethodFromObject()

testConstructMethodFromObject() 

testSplice()

testSplice() 

testGetPluckValueWithAccessors()

testGetPluckValueWithAccessors() 

testMap()

testMap() 

testMapSpread()

testMapSpread() 

testFlatMap()

testFlatMap() 

testMapToDictionary()

testMapToDictionary() 

testMapToDictionaryWithNumericKeys()

testMapToDictionaryWithNumericKeys() 

testMapToGroups()

testMapToGroups() 

testMapToGroupsWithNumericKeys()

testMapToGroupsWithNumericKeys() 

testMapWithKeys()

testMapWithKeys() 

testMapWithKeysIntegerKeys()

testMapWithKeysIntegerKeys() 

testMapWithKeysMultipleRows()

testMapWithKeysMultipleRows() 

testMapWithKeysCallbackKey()

testMapWithKeysCallbackKey() 

testMapInto()

testMapInto() 

testNth()

testNth() 

testTransform()

testTransform() 

testGroupByAttribute()

testGroupByAttribute() 

testGroupByAttributePreservingKeys()

testGroupByAttributePreservingKeys() 

testGroupByClosureWhereItemsHaveSingleGroup()

testGroupByClosureWhereItemsHaveSingleGroup() 

testGroupByClosureWhereItemsHaveSingleGroupPreservingKeys()

testGroupByClosureWhereItemsHaveSingleGroupPreservingKeys() 

testGroupByClosureWhereItemsHaveMultipleGroups()

testGroupByClosureWhereItemsHaveMultipleGroups() 

testGroupByClosureWhereItemsHaveMultipleGroupsPreservingKeys()

testGroupByClosureWhereItemsHaveMultipleGroupsPreservingKeys() 

testGroupByMultiLevelAndClosurePreservingKeys()

testGroupByMultiLevelAndClosurePreservingKeys() 

testKeyByAttribute()

testKeyByAttribute() 

testKeyByClosure()

testKeyByClosure() 

testContains()

testContains() 

testContainsStrict()

testContainsStrict() 

testContainsWithOperator()

testContainsWithOperator() 

testGettingSumFromCollection()

testGettingSumFromCollection() 

testCanSumValuesWithoutACallback()

testCanSumValuesWithoutACallback() 

testGettingSumFromEmptyCollection()

testGettingSumFromEmptyCollection() 

testValueRetrieverAcceptsDotNotation()

testValueRetrieverAcceptsDotNotation() 

testPullRetrievesItemFromCollection()

testPullRetrievesItemFromCollection() 

testPullRemovesItemFromCollection()

testPullRemovesItemFromCollection() 

testRejectRemovesElementsPassingTruthTest()

testRejectRemovesElementsPassingTruthTest() 

testSearchReturnsIndexOfFirstFoundItem()

testSearchReturnsIndexOfFirstFoundItem() 

testSearchReturnsFalseWhenItemIsNotFound()

testSearchReturnsFalseWhenItemIsNotFound() 

testKeys()

testKeys() 

testPaginate()

testPaginate() 

testPrepend()

testPrepend() 

testZip()

testZip() 

testPadPadsArrayWithValue()

testPadPadsArrayWithValue() 

testGettingMaxItemsFromCollection()

testGettingMaxItemsFromCollection() 

testGettingMinItemsFromCollection()

testGettingMinItemsFromCollection() 

testOnly()

testOnly() 

testGettingAvgItemsFromCollection()

testGettingAvgItemsFromCollection() 

testJsonSerialize()

testJsonSerialize() 

testCombineWithArray()

testCombineWithArray() 

testCombineWithCollection()

testCombineWithCollection() 

testConcatWithArray()

testConcatWithArray() 

testConcatWithCollection()

testConcatWithCollection() 

testReduce()

testReduce() 

testRandomThrowsAnExceptionUsingAmountBiggerThanCollectionSize()

testRandomThrowsAnExceptionUsingAmountBiggerThanCollectionSize() 

testPipe()

testPipe() 

testModeOnNullCollection()

testModeOnNullCollection() 

testMode()

testMode() 

testModeValueByKey()

testModeValueByKey() 

testWithMultipleModeValues()

testWithMultipleModeValues() 

testSliceOffset()

testSliceOffset() 

testSliceNegativeOffset()

testSliceNegativeOffset() 

testSliceOffsetAndLength()

testSliceOffsetAndLength() 

testSliceOffsetAndNegativeLength()

testSliceOffsetAndNegativeLength() 

testSliceNegativeOffsetAndLength()

testSliceNegativeOffsetAndLength() 

testSliceNegativeOffsetAndNegativeLength()

testSliceNegativeOffsetAndNegativeLength() 

testCollectionFromTraversable()

testCollectionFromTraversable() 

testCollectionFromTraversableWithKeys()

testCollectionFromTraversableWithKeys() 

testSplitCollectionWithADivisableCount()

testSplitCollectionWithADivisableCount() 

testSplitCollectionWithAnUndivisableCount()

testSplitCollectionWithAnUndivisableCount() 

testSplitCollectionWithCountLessThenDivisor()

testSplitCollectionWithCountLessThenDivisor() 

testSplitEmptyCollection()

testSplitEmptyCollection() 

testHigherOrderCollectionMap()

testHigherOrderCollectionMap() 

testHigherOrderCollectionMapFromArrays()

testHigherOrderCollectionMapFromArrays() 

testPartition()

testPartition() 

testPartitionCallbackWithKey()

testPartitionCallbackWithKey() 

testPartitionByKey()

testPartitionByKey() 

testPartitionWithOperators()

testPartitionWithOperators() 

testPartitionPreservesKeys()

testPartitionPreservesKeys() 

testPartitionEmptyCollection()

testPartitionEmptyCollection() 

testHigherOrderPartition()

testHigherOrderPartition() 

testTap()

testTap() 

testWhen()

testWhen() 

testWhenDefault()

testWhenDefault() 

testUnless()

testUnless() 

testUnlessDefault()

testUnlessDefault() 

testHasReturnsValidResults()

testHasReturnsValidResults() 

testPutAddsItemToCollection()

testPutAddsItemToCollection() 

testItThrowsExceptionWhenTryingToAccessNoProxyProperty()

testItThrowsExceptionWhenTryingToAccessNoProxyProperty() 

testGetWithNullReturnsNull()

testGetWithNullReturnsNull()