J. King
7340d65c0e
Make data clearing in tests static
6 years ago
J. King
8c20411359
Align statement tests with other database driver tests
6 years ago
J. King
f22e53fdc9
Align result tests with driver tests
6 years ago
J. King
4e444fd86c
Generic database interface creation in tests
6 years ago
J. King
c0c4810662
Nominally complete PostgreSQL driver
Connection error handling as well as uprade error handling still need
to be implemented.
6 years ago
J. King
84b4cb7465
Enable PostgreSQL statement testing
Tests involving binary data are skipped for now
6 years ago
J. King
b5733b070c
Clean up statement tests
PostgreSQL tests are suppressed for now, but most pass.
6 years ago
J. King
976672de5b
Test cleanup
6 years ago
J. King
c4ca9149a1
Move Statement 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.
6 years ago
J. King
bc9fcb975f
Change "rebind" to "retype" to better reflect what actually happens
6 years ago
J. King
bc9ffa0e17
Rewrite SQLite 3 type binding tests
6 years ago
J. King
a5318d1b12
Part 2
6 years ago
J. King
095fe10aec
Reorganize PDO tests into namespaces
6 years ago
J. King
59fee52074
Reorganize tests into namespaces
6 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
7 years ago
J. King
a67fe30408
Fix whitespace
Also fixed my editor so tabs won't happen again!
7 years ago
J. King
b02abec250
Added test for recursive binding
Also fixed a bug uncovered by the test
7 years ago
Dustin Wilson
7236020b8b
Changed "NewsSync" to "Arsse"
7 years ago
J. King
485400df2b
Rename Result->get() to Result->getRow
It should be slightly clearer what it does
7 years ago
J. King
f0adf08b1e
Add tests for type mismatches
7 years ago
J. King
95ee51563d
First battery of SQLite driver tests
7 years ago
J. King
7f7d0cd1e7
All test for constraint violation exception
7 years ago
J. King
7687109132
Reorganize Db namespace; alter User ns to match
7 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
7 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
7 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).
7 years ago
J. King
f19f683e38
Make it possible to redefine Statement type binds
7 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?
7 years ago