PHP Class RedUNIT\Base\Xnull

Tests NULL handling.
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
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 méthode

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
Résultat void

TypeColumn() public méthode

Test meta column type.
public TypeColumn ( ) : void
Résultat void

testBasicNullHandling() public méthode

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

testBindings() public méthode

Test Null bindings.
public testBindings ( )

testUnsetAliasedParent() public méthode

Test nullifying aliased parent.
public testUnsetAliasedParent ( ) : void
Résultat void

testUnsetParent() public méthode

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
Résultat void