PHP Class RedUNIT\Sqlite\Writer

Tests for SQLite Query Writer. This test class contains Query Writer specific tests. Use this class to add tests to test Query Writer specific behaviours, quirks and issues.
Author: Gabor de Mooij and the RedBeanPHP Community
Inheritance: extends RedUNIT\Sqlite
Show file Open project: gabordemooij/redbean

Public Methods

Method Description
testIssue9and10 ( ) : void Various.
testScanningAndCoding ( ) : void Test scanning and coding.
testSpecialDataTypes ( ) : void Test special data types.
testVaria2 ( ) : void Test various.
testZeroIssue ( ) : void (FALSE should be stored as 0 not as '')

Method Details

testIssue9and10() public method

Tests whether writer correctly handles keyword 'group' and SQL state 23000 issue. These tests remain here to make sure issues 9 and 10 never happen again. However this bug will probably never re-appear due to changed architecture.
public testIssue9and10 ( ) : void
return void

testScanningAndCoding() public method

Test scanning and coding.
public testScanningAndCoding ( ) : void
return void

testSpecialDataTypes() public method

Test special data types.
public testSpecialDataTypes ( ) : void
return void

testVaria2() public method

Test various somewhat uncommon trash/unassociate scenarios. (i.e. unassociate unrelated beans, trash non-persistant beans etc). Should be handled gracefully - no output checking.
public testVaria2 ( ) : void
return void

testZeroIssue() public method

(FALSE should be stored as 0 not as '')
public testZeroIssue ( ) : void
return void