PHP Class RedUNIT\Base\Dup

Tests duplication. Like the 'copy' test suite but focuses on more complex scenarios.
Author: Gabor de Mooij and the RedBeanPHP Community
Inheritance: extends RedUNIT\Base
Show file Open project: gabordemooij/redbean

Public Methods

Method Description
DupAndCache ( ) : void Test duplication and caching.
ExportWithFilters ( ) : void Test exporting with filters.
testDupAndExportNonTainting ( ) : void Test duplication and tainting.
testDupPortionOfATree ( ) : void Test whether we can duplicate part of a tree without infinite loops.
testExportAllAndCache ( ) : void Test exportAll and caching.
testExportCamelCase ( ) : void Test export camelCase.
testKeepOldID ( ) Tests whether the original ID is stored in meta data (quite handy for ID mappings).

Private Methods

Method Description
compare ( type $object, type $array ) Compares object with export
getCache ( ) : array Helper function getCache().
runOnce ( $n = TRUE ) Run tests

Method Details

DupAndCache() public method

Test duplication and caching.
public DupAndCache ( ) : void
return void

ExportWithFilters() public method

Test exporting with filters.
public ExportWithFilters ( ) : void
return void

testDupAndExportNonTainting() public method

Test duplication and tainting.
public testDupAndExportNonTainting ( ) : void
return void

testDupPortionOfATree() public method

Test whether we can duplicate part of a tree without infinite loops.
public testDupPortionOfATree ( ) : void
return void

testExportAllAndCache() public method

Test exportAll and caching.
public testExportAllAndCache ( ) : void
return void

testExportCamelCase() public method

Test export camelCase.
public testExportCamelCase ( ) : void
return void

testKeepOldID() public method

Tests whether the original ID is stored in meta data (quite handy for ID mappings).
public testKeepOldID ( )