J. King
bc9fcb975f
Change "rebind" to "retype" to better reflect what actually happens
6 years ago
J. King
31aea0a06a
PDO-SQLite type binding tests
Db namespace is now back to full coverage
6 years ago
J. King
39cad91b78
CS fixes
6 years ago
J. King
a5318d1b12
Part 2
6 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
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