PHP Class MathPHP\SetTheory\SetOperationsTest

Inheritance: extends PHPUnit_Framework_TestCase
Afficher le fichier Open project: markrogoyski/math-php

Méthodes publiques

Méthode Description
dataProviderForAdd ( )
dataProviderForAddMulti ( )
dataProviderForCartesianProduct ( )
dataProviderForDifference ( )
dataProviderForDifferenceMultiSet ( )
dataProviderForIntersect ( )
dataProviderForIntersectMultipleSets ( )
dataProviderForIsDisjoint ( )
dataProviderForIsNotSubset ( )
dataProviderForIsProperSet ( )
dataProviderForIsSubsetSuperset ( )
dataProviderForNotDisjoint ( )
dataProviderForPowerSet ( )
dataProviderForRemove ( )
dataProviderForRemoveMulti ( )
dataProviderForSingleSet ( )
dataProviderForSymmetricDifference ( )
dataProviderForUnion ( )
dataProviderForUnionMultipleSets ( )
testAdd ( array $A, $x, array $R )
testAddMulti ( array $A, array $x, array $R )
testAddMultiWithArrayOfArrays ( ) In this case, we add an array that contains arrays.
testAddMultiWithArrayOfArraysMultipleArraysAndDuplicates ( ) In this case, we add an array that contains arrays.
testAddTwiceDoesNothing ( array $A, $x, array $R )
testAddWithDuplicateObjects ( )
testAddWithMultipleObjects ( )
testAddWithObjects ( ) When adding objects to a set, the key becomes to the objects hash.
testAddWithResources ( ) When adding resources to a set, the key becomes to the resource ID.
testCartesianProduct ( array $A, array $B, array $A×B, Set $R )
testClear ( array $members )
testCopy ( array $members )
testDifference ( array $A, array $B, array $diff, Set $R )
testDifferenceMultiSet ( array $A, array $B, array $C, array $diff, Set $R )
testDifferenceWithArrays ( )
testDifferenceWithObjects ( )
testIntersect ( array $A, array $B, array $A∩B, Set $R )
testIntersectMultipleSets ( array $A, array $B, array $C, array $A∩B∩C, Set $R )
testIntersectWithArrays ( )
testIntersectWithObjects ( )
testIsDisjoint ( array $A, array $B )
testIsNotSubset ( array $A, array $B )
testIsProperSubset ( array $A, array $B )
testIsProperSuperset ( array $A, array $B )
testIsSubset ( array $A, array $B )
testIsSuperset ( array $A, array $B )
testNotDisjoint ( array $A, array $B )
testPowerSet ( Set $A, Set $expected )
testRemove ( array $A, $x, array $R )
testRemoveMulti ( array $A, array $x, array $R )
testSymmetricDifference ( array $A, array $B, array $diff, Set $R )
testSymmetricDifferenceWithArrays ( )
testSymmetricDifferenceWithObjects ( )
testUnion ( array $A, array $B, array $A∪B, Set $R )
testUnionMultipleSets ( array $A, array $B, array $C, array $A∪B∪C, Set $R )
testUnionWithArrays ( )
testUnionWithObjects ( )

Method Details

dataProviderForAdd() public méthode

public dataProviderForAdd ( )

dataProviderForAddMulti() public méthode

dataProviderForCartesianProduct() public méthode

dataProviderForDifference() public méthode

dataProviderForDifferenceMultiSet() public méthode

dataProviderForIntersect() public méthode

dataProviderForIntersectMultipleSets() public méthode

dataProviderForIsDisjoint() public méthode

dataProviderForIsNotSubset() public méthode

dataProviderForIsProperSet() public méthode

dataProviderForIsSubsetSuperset() public méthode

dataProviderForNotDisjoint() public méthode

dataProviderForPowerSet() public méthode

dataProviderForRemove() public méthode

dataProviderForRemoveMulti() public méthode

dataProviderForSingleSet() public méthode

dataProviderForSymmetricDifference() public méthode

dataProviderForUnion() public méthode

dataProviderForUnionMultipleSets() public méthode

testAdd() public méthode

public testAdd ( array $A, $x, array $R )
$A array
$R array

testAddMulti() public méthode

public testAddMulti ( array $A, array $x, array $R )
$A array
$x array
$R array

testAddMultiWithArrayOfArrays() public méthode

So each array element will be added, but with the implementation detail that they will be converted into ArrayObjects.

testAddMultiWithArrayOfArraysMultipleArraysAndDuplicates() public méthode

So each array element will be added, but with the implementation detail that they will be converted into ArrayObjects.

testAddTwiceDoesNothing() public méthode

public testAddTwiceDoesNothing ( array $A, $x, array $R )
$A array
$R array

testAddWithDuplicateObjects() public méthode

testAddWithMultipleObjects() public méthode

testAddWithObjects() public méthode

The object is stored as is as the value.
public testAddWithObjects ( )

testAddWithResources() public méthode

The resource is stored as is as the value.

testCartesianProduct() public méthode

public testCartesianProduct ( array $A, array $B, array $A×B, Set $R )
$A array
$B array
$A×B array
$R Set

testClear() public méthode

public testClear ( array $members )
$members array

testCopy() public méthode

public testCopy ( array $members )
$members array

testDifference() public méthode

public testDifference ( array $A, array $B, array $diff, Set $R )
$A array
$B array
$diff array
$R Set

testDifferenceMultiSet() public méthode

public testDifferenceMultiSet ( array $A, array $B, array $C, array $diff, Set $R )
$A array
$B array
$C array
$diff array
$R Set

testDifferenceWithArrays() public méthode

testDifferenceWithObjects() public méthode

testIntersect() public méthode

public testIntersect ( array $A, array $B, array $A∩B, Set $R )
$A array
$B array
$A∩B array
$R Set

testIntersectMultipleSets() public méthode

public testIntersectMultipleSets ( array $A, array $B, array $C, array $A∩B∩C, Set $R )
$A array
$B array
$C array
$A∩B∩C array
$R Set

testIntersectWithArrays() public méthode

testIntersectWithObjects() public méthode

testIsDisjoint() public méthode

public testIsDisjoint ( array $A, array $B )
$A array
$B array

testIsNotSubset() public méthode

public testIsNotSubset ( array $A, array $B )
$A array
$B array

testIsProperSubset() public méthode

public testIsProperSubset ( array $A, array $B )
$A array
$B array

testIsProperSuperset() public méthode

public testIsProperSuperset ( array $A, array $B )
$A array
$B array

testIsSubset() public méthode

public testIsSubset ( array $A, array $B )
$A array
$B array

testIsSuperset() public méthode

public testIsSuperset ( array $A, array $B )
$A array
$B array

testNotDisjoint() public méthode

public testNotDisjoint ( array $A, array $B )
$A array
$B array

testPowerSet() public méthode

public testPowerSet ( Set $A, Set $expected )
$A Set
$expected Set

testRemove() public méthode

public testRemove ( array $A, $x, array $R )
$A array
$R array

testRemoveMulti() public méthode

public testRemoveMulti ( array $A, array $x, array $R )
$A array
$x array
$R array

testSymmetricDifference() public méthode

public testSymmetricDifference ( array $A, array $B, array $diff, Set $R )
$A array
$B array
$diff array
$R Set

testSymmetricDifferenceWithArrays() public méthode

testSymmetricDifferenceWithObjects() public méthode

testUnion() public méthode

public testUnion ( array $A, array $B, array $A∪B, Set $R )
$A array
$B array
$A∪B array
$R Set

testUnionMultipleSets() public méthode

public testUnionMultipleSets ( array $A, array $B, array $C, array $A∪B∪C, Set $R )
$A array
$B array
$C array
$A∪B∪C array
$R Set

testUnionWithArrays() public méthode

public testUnionWithArrays ( )

testUnionWithObjects() public méthode