PHP Class RedUNIT\Blackhole\Misc

This test suite contains tests for a various functionalities and scenarios. For more details please consult the document section attached to each individual test method listed here.
Author: Gabor de Mooij and the RedBeanPHP Community
Inheritance: extends RedUNIT\Blackhole
Show file Open project: gabordemooij/redbean

Public Methods

Method Description
getTargetDrivers ( ) * What drivers should be loaded for this test pack?
testAddingTwice ( ) Adding a database twice no longer allowed, causes confusion and possible damage.
testBatch0 ( ) : void Test whether batch still works if no IDs have been passed.
testBeansToArray ( ) : void Tests beansToArray().
testCamel2Snake ( ) : void Test camelCase to snake_case conversions.
testConnect ( ) : void Test whether connection failure does not reveal credentials.
testConv2Beans ( )
testDebugCustomLogger ( ) : void Test debugging with custom logger.
testGetIDShouldNeverPrintNotice ( ) : void Tests whether getID never produces a notice.
testIntegerBindingMax ( ) : void Tests max parameter binding.
testInvalidDebugModeException ( ) Should not be able to pass invalid mode (must be 0 or 1).
testInvalidType ( ) : void Test the most important invalid bean combinations.
testJSONSerialize ( ) : void Test whether we can use the JSONSerializable interface and whether old-style JSON is still the same (backwards compatibility).
testSetProperty ( ) : void Tests setProperty.
testSetup ( ) : void Test whether we can create an instant database using R::setup().
testTransactionInFacade ( ) : void Test Facade transactions.

Method Details

getTargetDrivers() public method

* What drivers should be loaded for this test pack?
public getTargetDrivers ( )

testAddingTwice() public method

Adding a database twice no longer allowed, causes confusion and possible damage.
public testAddingTwice ( )

testBatch0() public method

Test whether batch still works if no IDs have been passed.
public testBatch0 ( ) : void
return void

testBeansToArray() public method

Tests beansToArray().
public testBeansToArray ( ) : void
return void

testCamel2Snake() public method

Test camelCase to snake_case conversions.
public testCamel2Snake ( ) : void
return void

testConnect() public method

Test whether connection failure does not reveal credentials.
public testConnect ( ) : void
return void

testConv2Beans() public method

public testConv2Beans ( )

testDebugCustomLogger() public method

Test debugging with custom logger.
public testDebugCustomLogger ( ) : void
return void

testGetIDShouldNeverPrintNotice() public method

Tests whether getID never produces a notice.

testIntegerBindingMax() public method

Tests max parameter binding.
public testIntegerBindingMax ( ) : void
return void

testInvalidDebugModeException() public method

Should not be able to pass invalid mode (must be 0 or 1).

testInvalidType() public method

Test the most important invalid bean combinations.
public testInvalidType ( ) : void
return void

testJSONSerialize() public method

Test whether we can use the JSONSerializable interface and whether old-style JSON is still the same (backwards compatibility).
public testJSONSerialize ( ) : void
return void

testSetProperty() public method

Tests setProperty.
public testSetProperty ( ) : void
return void

testSetup() public method

Probably only works on *NIX systems.
public testSetup ( ) : void
return void

testTransactionInFacade() public method

Test Facade transactions.
public testTransactionInFacade ( ) : void
return void