Commit graph

122 commits

Author SHA1 Message Date
Joshua Sherman
4bffc1d80c Dropped error message from expected exception
Travis was dumping the same error code but now the same message. Dropping the
message assertion but still asserting the expected exception code.
2014-01-18 11:47:08 -05:00
Joshua Sherman
72be314073 Finished up security class testing. 2014-01-18 11:43:23 -05:00
Joshua Sherman
30b9616b12 Finished testing the Database class 2014-01-18 10:31:46 -05:00
Joshua Sherman
2ff7a658e7 Testing Database class 2014-01-17 17:22:23 -05:00
Joshua Sherman
8655045097 Dropped database JOINs
Not being used and the logic is pretty damn hacky. I don't believe in JOINs so
I'm unsure if this support will be re-added in the future or if there will
simply be a backed in opinion that JOINs are the devil.
2014-01-17 15:46:57 -05:00
Joshua Sherman
9cc466bcd3 Module testing coverage 100% 2014-01-17 15:30:58 -05:00
Joshua Sherman
76d3c7cdc4 Fixed glitch causing a lack of coverage
The Session class relies on the REQUEST_METHOD being set, else it won't start
up. Added the value and the coverage jumped to 100%
2014-01-17 13:36:08 -05:00
Joshua Sherman
af16edfedd Dropped index hint tests 2014-01-17 13:16:37 -05:00
Joshua Sherman
57a5b0c2c0 More tests. 2014-01-17 01:53:27 -05:00
Joshua Sherman
51467a60f7 Working on tests for the Model class
Fixed some bugs, got MySQL setup for Travis.
2014-01-16 17:06:31 -05:00
Joshua Sherman
200988eecf Swapped all array() for the shorthand []
Also finished up coverage on the Cache class.
2014-01-15 14:09:54 -05:00
Joshua Sherman
aecdd0981f Finished tests for Config class 2014-01-15 13:46:17 -05:00
Joshua Sherman
f9f179b45d Profiler tests and some rework
Abandoned private constructor and cleaned up the code a bit.
2014-01-15 00:40:34 -05:00
Joshua Sherman
da7a0de91f Removed process isolation 2014-01-14 02:44:15 -05:00
Joshua Sherman
6257f89b18 Added most of the Cache tests
Dropped some unnecessary try/catch blocks and updated the Database class to
not use any data sources that lack a driver.
2014-01-14 02:19:40 -05:00
Joshua Sherman
f160daabe7 Whoops, duped a class before commiting 2014-01-13 01:41:09 -05:00
Joshua Sherman
35d03eb719 Finished up session class rework and testing 2014-01-13 01:39:14 -05:00
Joshua Sherman
097911a667 Added validation class testing and fixed some bugs
Amazing that there were as many bugs in there as there were.
2014-01-13 00:24:17 -05:00
Joshua Sherman
9a2d593eff Reworked the database class
Got rid of all of that object bloatin’ nonsense.
2014-01-12 23:24:41 -05:00
Joshua Sherman
7fc38398eb Forgot to include these. 2014-01-12 22:06:34 -05:00
Joshua Sherman
10a05a0a06 Added just enough tests to get all code analyzed
Coverage testing wasn't analyzing files that weren't touched at all. All files
are now included with the exception of the Database files that I'll be
consolidating soon into a single class (no reason to have so many classes
touched just to create a single database object). Aside from that, all classes
are now represented in the coverage report, Sad to go from 80% down to 50% but
oh well, it's for the best!
2014-01-12 22:04:51 -05:00
Joshua Sherman
6120933fce More tests and cleaned up some ancient code
It actually referenced the INI file, lolno.
2014-01-12 21:53:05 -05:00
Joshua Sherman
62133dc1ca Hacking away to get coverage up
Finished up all the low hanging fruit (working the classes I already started
that were just shy of 100% coverage). Just shy of 80% coverage at this point.
2014-01-12 18:20:30 -05:00
Joshua Sherman
8db383601e More tests and 100% coverage achievements!
Also fixed a few minor bugs and reworked Browser class to not use the constant
UNIT_TESTING so I could get the class to 100% coverage. Adds a dependency of
testing_helpers which I believe is available on Travis CI by default. Up to 75%
coverage, w00t w00t!
2014-01-12 16:09:48 -05:00
Joshua Sherman
faaefc1b82 Getting coverage to 100% on these classes
Also found a bug in the Form class that would bork phone numbers with dashes in
them. Even though the Form class is going to go away eventually I wanted to fix
the issue.
2014-01-12 13:56:52 -05:00
Joshua Sherman
5ef3b58f53 Test for img parameters 2014-01-11 19:44:55 -05:00
Joshua Sherman
f9a3311087 More tests for the Gravatar class
Trying to cover all of the bases.
2014-01-11 19:37:47 -05:00
Joshua Sherman
74611b9e74 Added test against alternate default URL 2014-01-11 19:33:34 -05:00
Joshua Sherman
36d86100f9 Fixed up a conditional, added a new Distance test. 2014-01-11 19:19:07 -05:00
Joshua Sherman
2fe3f68fe5 Dropped unnecessary tests 2014-01-11 19:13:34 -05:00
Joshua Sherman
5d7f3a0e5a Added an injectable endpoint
Allows for injecting endpoints to simulate poor responses while still testing
the responses from the actual endpoint.
2014-01-11 19:07:29 -05:00
Joshua Sherman
abe73f66a4 Added better test coverage to the AYAH class 2014-01-11 18:41:27 -05:00
Joshua Sherman
549abca8df Expanded File class testing
Shooting for 100%!
2014-01-11 18:28:14 -05:00
Joshua Sherman
f8d44618d2 Fixed composer path in bootstrap 2014-01-11 16:25:41 -05:00
Joshua Sherman
161d0e5051 Stubbed out Profiler tests 2014-01-04 11:33:13 -05:00
Joshua Sherman
bf817d52f4 HTML class tests
Wrote tests and dropped the ol' XHTML "self-closing" tags. Also fixed a bug with closing tags when no content was present.
2014-01-04 10:15:56 -05:00
Joshua Sherman
f0b5bfa459 Form class tests and updates
Still rockin' that XHTML4 nonsense. Updates to HTML5 (sans self closing tags) and added tests.
2014-01-03 23:45:52 -05:00
Joshua Sherman
dd2e6994fa New test classes
Forgot to commit them it seems.
2014-01-03 19:08:53 -05:00
Joshua Sherman
ff226a3cf9 MOAR TESTS
Had to half ass the AYAH test because it was throwing too many errors w/o an actual API key. Testing the error scenarios in the methods themselves and not the results from AYAH.
2014-01-03 19:00:38 -05:00
Joshua Sherman
c87779b9d2 Tests for gravatar class 2014-01-03 18:17:06 -05:00
Joshua Sherman
ff44cd0e17 Cleaned up longhand arrays, added Profanity tests 2014-01-03 17:52:24 -05:00
Joshua Sherman
6e9736f030 Finished up tests for Dynamic class
Switched closure compiler to a composer version for ease of use when doing CI testing
2014-01-03 00:22:58 -05:00
Joshua Sherman
17752f71b3 More composer stuff, updated compile / minify logic
Now using composer installed apps for less and scss files.
2014-01-02 22:39:19 -05:00
Joshua Sherman
bfa35794b5 Cleaned up old code and wrote more tests
Log class is fully tested, Dynamic class is nearly complete but I wanted to see what Travis would bark about regarding LESS and SASS
2014-01-02 18:16:15 -05:00
Joshua Sherman
3fee938c2a Stubbed out and wrote some tests
Will code tests for the stub files in the AM.
2014-01-02 01:17:25 -05:00
Joshua Sherman
5308f4ea6c Number and File class tests 2014-01-02 00:56:20 -05:00
Joshua Sherman
e9456600a7 Sort and Time class tests 2014-01-02 00:09:58 -05:00
Joshua Sherman
007ebef6e6 Distance class tests 2014-01-01 23:03:08 -05:00
Joshua Sherman
2f0472fbf3 Browser class tests 2014-01-01 22:37:05 -05:00
Joshua Sherman
6ff2889270 Moved testing TODO 2013-12-31 12:51:26 -05:00