PHP Class RedUNIT\Base\Xnull

Tests NULL handling.
Author: Gabor de Mooij and the RedBeanPHP Community
Inheritance: extends RedUNIT\Base
Show file Open project: gabordemooij/redbean

Public Methods

Method Description
ColumnType ( ) : void Here we test whether the column type is set correctly.
TypeColumn ( ) : void Test meta column type.
testBasicNullHandling ( ) : void Test NULL handling, setting a property to NULL must cause a change.
testBindings ( ) Test Null bindings.
testUnsetAliasedParent ( ) : void Test nullifying aliased parent.
testUnsetParent ( ) : void Tests whether we can NULLify a parent bean page->book if the parent (book) is already NULL. (isset vs array_key_exists bug).

Method Details

ColumnType() public method

Normally if you store NULL, the smallest type (bool/set) will be selected. However in case of a foreign key type INT should be selected because fks columns require matching types.
public ColumnType ( ) : void
return void

TypeColumn() public method

Test meta column type.
public TypeColumn ( ) : void
return void

testBasicNullHandling() public method

Test NULL handling, setting a property to NULL must cause a change.
public testBasicNullHandling ( ) : void
return void

testBindings() public method

Test Null bindings.
public testBindings ( )

testUnsetAliasedParent() public method

Test nullifying aliased parent.
public testUnsetAliasedParent ( ) : void
return void

testUnsetParent() public method

Tests whether we can NULLify a parent bean page->book if the parent (book) is already NULL. (isset vs array_key_exists bug).
public testUnsetParent ( ) : void
return void