J. King
18c8076a0f
Database update tests
7 years ago
J. King
a3e2da1d36
Flesh out most database exceptions
- Fixes #46
- Some exception messages are tentative pending testing
7 years ago
J. King
7c1df71acd
Make db throw specific exceptions
Needs testing and fleshing out; not all exception codes and messages have been defined
7 years ago
J. King
fa247b34f6
Reduce the number of database exception types
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
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
8a0d021622
More User tests and resultant fixes
7 years ago
Dustin Wilson
e5d825d360
Started integration of PicoFeed
• Integrated PicoFeed into Database->subscriptionAdd
• Added exception handling for feeds
• Added static method for formatting SQL dates into Db/Common
7 years ago
J. King
8db31cf3e4
Tweaked Lang; added comments and tests
Tweaks:
- get() method can now report loaded and well as wanted locale
- msg() passed without vars still gets formatted to catch malformed strings
- set('en', false) followed by set('en', true) will now immediately load
- Lang::$synched was not getting set to true properly
Tests:
- Added test for get()
- Added test for malformed strings (exception code was missing)
- Added test for missing strings
- Added test for strings taking variables not being passed any variables
7 years ago
Dustin Wilson
c5fac33398
Converted all hard tabs to soft tabs
7 years ago
J. King
c8274eca74
Moved base exception code to abstract class
This allows differentiating specific and general exceptions in tests; a library-wide trap would have to trap AbstractException
7 years ago
J. King
c213b5928d
move code out of vendor tree into lib
7 years ago
J. King
849294d082
Clean up test names; add Lang & Exception tests
7 years ago
J. King
2c134c76dc
Basic tests for exceptions
7 years ago
J. King
f78048317e
Refactor language test boilerplate into trait
7 years ago
J. King
f16e490141
First set of unit tests for Conf.php
7 years ago
J. King
9ed4bb6f5b
Added authorization checks throughout
8 years ago
J. King
646b44c9cf
Functioning (but still incomplete) user management
8 years ago
J. King
7a66b28310
Added database exception error codes
8 years ago
J. King
6ffe942f99
SQLite3 database driver in working condition
PDO stub for now; other drivers to come
8 years ago
J. King
db0bd18663
Localization class, and other improvements
Language file format will almost certainly change
8 years ago