J. King
bab4174a17
Move database driver helps out of test cases
5 years ago
J. King
e92bda5373
Various changes:
- Fix handling of binary data and long strings
- Simplify handling of socket connections
- Fix coverage
6 years ago
J. King
e501fbdc87
Remove the DatabaseInformation class in tests and use traits instead
6 years ago
J. King
81acba90dc
Use strict equality when comparing strings
6 years ago
J. King
f0d30c2eee
Make munging of queries a generic feature
6 years ago
J. King
8a49202036
Use common cleanup code for all database-related tests
6 years ago
J. King
8c20411359
Align statement tests with other database driver tests
6 years ago
J. King
7e11019e83
Consolidate statement tests
6 years ago
J. King
a3dbb08da9
Remove obsolete test code
6 years ago
J. King
f64f0c6a22
Whitespace cleanup
6 years ago
J. King
ba0aeab7ec
Make SQL statement type conversion use ValueInfo normalizer
This sees the addition of a dateOutFormat parameter to ValueInfo::normalize(), as well as a general simplification of how parameter binding works.
Some value type-casting results are slightly different, but this simply makes SQL statement objects consistent with the rest of the system.
7 years ago
J. King
bc9fcb975f
Change "rebind" to "retype" to better reflect what actually happens
7 years ago
J. King
31aea0a06a
PDO-SQLite type binding tests
Db namespace is now back to full coverage
7 years ago
J. King
39cad91b78
CS fixes
7 years ago
J. King
a5318d1b12
Part 2
7 years ago
J. King
ad6a09ffa1
Partially tested pdo_sqlite driver; improves #72
7 years ago
J. King
3adfe8742f
Reorganize test cases
7 years ago
J. King
11b2066922
Added per-file legal boilerplate
Includes PHPDoc license tag in the file-level block with accompanying copyright notice.
Also added an AUTHORS file on the off chance of outside contributions
7 years ago
J. King
f7e50fe95d
Passed code through linter
7 years ago
J. King
da80a8ffa6
Complete tests for database driver
- Fixes #62
7 years ago
J. King
cbdcacd1c3
Added basic code coverage annotations
7 years ago
J. King
b3f631e335
Use more reliable database locking strategy; reorganize tests
PostgreSQL and MySQL both have better locking mechanisms than what was previously implemented, as well
7 years ago
J. King
ceeb23aea3
More Feed tests: cache header handling
- Also made all SQLite tests skippable if the extension is not loaded
- Fixed format of ETags in test server
- Passed any CLI arguments to PHPUnit in the test runner
7 years ago
J. King
4a816f827b
NCNv1 feed calls and other changes
- Implemented all but one feed-related function (it's more ofan item function)
- Fixed time conversion for input into SQL; dates in PM were previously wrong
- Added miscellaneous tentative functions to Database to help with peculiarities of NCNv1; these may change
- Tests to come soon
7 years ago
J. King
fb922e65e4
Tests for strict binding
8 years ago
J. King
a67fe30408
Fix whitespace
Also fixed my editor so tabs won't happen again!
8 years ago
J. King
b02abec250
Added test for recursive binding
Also fixed a bug uncovered by the test
8 years ago
Dustin Wilson
7236020b8b
Changed "NewsSync" to "Arsse"
8 years ago
J. King
485400df2b
Rename Result->get() to Result->getRow
It should be slightly clearer what it does
8 years ago
J. King
f0adf08b1e
Add tests for type mismatches
8 years ago
J. King
95ee51563d
First battery of SQLite driver tests
8 years ago
J. King
7f7d0cd1e7
All test for constraint violation exception
8 years ago
J. King
7687109132
Reorganize Db namespace; alter User ns to match
8 years ago
J. King
eeb1818bb5
Still more database changes
- Restructured tests
- Localized driver name for SQLite driver (fixes #37 )
- Ensured that binding type definitions are required
8 years ago
J. King
0c410fcf50
More binding tests and related changes
- Introduced abstract Statement class to hold common methods
- Common methods currently consist of a date formatter and type caster
- Moved binding tests to a trait for reuse with future drivers
8 years ago
J. King
1529fc367a
Partial proper tests for parameter bindings
Null and (>0) integer tested so far
Many related changes to accomodate the necessary type juggling (required for databases other than SQLite).
8 years ago
J. King
f19f683e38
Make it possible to redefine Statement type binds
8 years ago
J. King
b4d178c33f
Remove most PDO stuff
PDO will not be supported: the feature-set is less than any of the common native APIs, so why bother?
8 years ago