PHP Класс MathPHP\SetTheory\SetOperationsTest

Наследование: extends PHPUnit_Framework_TestCase
Показать файл Открыть проект

Открытые методы

Метод Описание
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 ( )

Описание методов

dataProviderForAdd() публичный Метод

public dataProviderForAdd ( )

dataProviderForAddMulti() публичный Метод

dataProviderForCartesianProduct() публичный Метод

dataProviderForDifference() публичный Метод

dataProviderForDifferenceMultiSet() публичный Метод

dataProviderForIntersect() публичный Метод

dataProviderForIntersectMultipleSets() публичный Метод

dataProviderForIsDisjoint() публичный Метод

dataProviderForIsNotSubset() публичный Метод

dataProviderForIsProperSet() публичный Метод

dataProviderForIsSubsetSuperset() публичный Метод

dataProviderForNotDisjoint() публичный Метод

dataProviderForPowerSet() публичный Метод

dataProviderForRemove() публичный Метод

dataProviderForRemoveMulti() публичный Метод

dataProviderForSingleSet() публичный Метод

dataProviderForSymmetricDifference() публичный Метод

dataProviderForUnion() публичный Метод

dataProviderForUnionMultipleSets() публичный Метод

testAdd() публичный Метод

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

testAddMulti() публичный Метод

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

testAddMultiWithArrayOfArrays() публичный Метод

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

testAddMultiWithArrayOfArraysMultipleArraysAndDuplicates() публичный Метод

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

testAddTwiceDoesNothing() публичный Метод

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

testAddWithDuplicateObjects() публичный Метод

testAddWithMultipleObjects() публичный Метод

testAddWithObjects() публичный Метод

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

testAddWithResources() публичный Метод

The resource is stored as is as the value.

testCartesianProduct() публичный Метод

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

testClear() публичный Метод

public testClear ( array $members )
$members array

testCopy() публичный Метод

public testCopy ( array $members )
$members array

testDifference() публичный Метод

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

testDifferenceMultiSet() публичный Метод

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

testDifferenceWithArrays() публичный Метод

testDifferenceWithObjects() публичный Метод

testIntersect() публичный Метод

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

testIntersectMultipleSets() публичный Метод

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() публичный Метод

testIntersectWithObjects() публичный Метод

testIsDisjoint() публичный Метод

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

testIsNotSubset() публичный Метод

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

testIsProperSubset() публичный Метод

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

testIsProperSuperset() публичный Метод

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

testIsSubset() публичный Метод

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

testIsSuperset() публичный Метод

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

testNotDisjoint() публичный Метод

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

testPowerSet() публичный Метод

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

testRemove() публичный Метод

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

testRemoveMulti() публичный Метод

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

testSymmetricDifference() публичный Метод

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

testSymmetricDifferenceWithArrays() публичный Метод

testSymmetricDifferenceWithObjects() публичный Метод

testUnion() публичный Метод

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

testUnionMultipleSets() публичный Метод

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 testUnionWithArrays ( )

testUnionWithObjects() публичный Метод