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
Show file Open project: gabordemooij/redbean

Public Methods

Method 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 method

Test whether recursion happens
public testCopyRecursion ( )

testRecursion() public method

Test Recursion
public testRecursion ( )

testVersioning() public method

Test real world scenario: Versioning
public testVersioning ( )

testVersioningIntermediateSaves() public method

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