PHP Class RedUNIT\Base\Copy

Tests whether we can make a copy or a deep copy of a bean and whether recursion is handled well. Also tests versioning: copying can be used to implement a versioning feature, some test cases will reflect this particular use case.
Author: Gabor de Mooij and the RedBeanPHP Community
Inheritance: extends RedUNIT\Base
Afficher le fichier Open project: gabordemooij/redbean

Méthodes publiques

Méthode Description
testCopyRecursion ( ) Test whether recursion happens
testRecursion ( ) Test Recursion
testVersioning ( ) Test real world scenario: Versioning
testVersioningIntermediateSaves ( ) Same as above but now with intermediate save, counts must be same

Method Details

testCopyRecursion() public méthode

Test whether recursion happens
public testCopyRecursion ( )

testRecursion() public méthode

Test Recursion
public testRecursion ( )

testVersioning() public méthode

Test real world scenario: Versioning
public testVersioning ( )

testVersioningIntermediateSaves() public méthode

Same as above but now with intermediate save, counts must be same