PHP Класс RedUNIT\Postgres\Writer

Tests for PostgreSQL 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.
Автор: Gabor de Mooij and the RedBeanPHP Community
Наследование: extends RedUNIT\Postgres
Показать файл Открыть проект

Открытые методы

Метод Описание
testIssue9and10 ( ) : void Various.
testPolygons ( ) : void Test polygons.
testScanningAndCoding ( ) : void Test scanning and coding.
testTypes ( ) : void Test special types.
testTypesDateTimes ( ) : void Datetime.
testTypesDates ( ) : void Test dates.
testTypesDecPoints ( ) : void Test points.
testTypesInvalidMoney ( ) : void Issue #340 Redbean is currently picking up bcrypt hashed passwords (which look like this: $2y$12$85lAS.
testTypesMon ( ) : void Test money types.
testTypesMoney ( ) : void Test money data type.
testTypesMultiDecPoints ( ) : void Test multi points.
testTypesNegativeMoney ( ) : void Test negative money data type.
testTypesPoints ( ) : void Test spatial data types.
testTypesStrings ( ) : void Test types of strings.
testTypesWeirdPoints ( ) : void More points.
testVaria ( ) : void Test various.
testZeroIssue ( ) : void (FALSE should be stored as 0 not as '')

Описание методов

testIssue9and10() публичный Метод

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
Результат void

testPolygons() публичный Метод

Test polygons.
public testPolygons ( ) : void
Результат void

testScanningAndCoding() публичный Метод

Test scanning and coding.
public testScanningAndCoding ( ) : void
Результат void

testTypes() публичный Метод

Test special types.
public testTypes ( ) : void
Результат void

testTypesDateTimes() публичный Метод

Datetime.
public testTypesDateTimes ( ) : void
Результат void

testTypesDates() публичный Метод

Test dates.
public testTypesDates ( ) : void
Результат void

testTypesDecPoints() публичный Метод

Test points.
public testTypesDecPoints ( ) : void
Результат void

testTypesInvalidMoney() публичный Метод

...SnpDNVGPAC7w0G) as PostgreSQL money types. Then, once R::store is called on the bean, it chokes and throws the following error: PHP Fatal error: Uncaught [22P02] - SQLSTATE[22P02]: Invalid text representation: 7 ERROR: invalid input syntax for type money: ....
public testTypesInvalidMoney ( ) : void
Результат void

testTypesMon() публичный Метод

Test money types.
public testTypesMon ( ) : void
Результат void

testTypesMoney() публичный Метод

Test money data type.
public testTypesMoney ( ) : void
Результат void

testTypesMultiDecPoints() публичный Метод

Test multi points.
public testTypesMultiDecPoints ( ) : void
Результат void

testTypesNegativeMoney() публичный Метод

Test negative money data type.
public testTypesNegativeMoney ( ) : void
Результат void

testTypesPoints() публичный Метод

Test spatial data types.
public testTypesPoints ( ) : void
Результат void

testTypesStrings() публичный Метод

Test types of strings.
public testTypesStrings ( ) : void
Результат void

testTypesWeirdPoints() публичный Метод

..
public testTypesWeirdPoints ( ) : void
Результат void

testVaria() публичный Метод

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 testVaria ( ) : void
Результат void

testZeroIssue() публичный Метод

(FALSE should be stored as 0 not as '')
public testZeroIssue ( ) : void
Результат void