Commit graph

810 commits

Author SHA1 Message Date
Joshua Sherman
74a77e2262 Swapped dependency monitoring
Same functionality but now the button's green color matches the other two
buttons. Was kinda bugging me :-/
2014-01-20 15:06:18 -05:00
Joshua Sherman
7c8ae14b75 And then there were none. 2014-01-20 01:25:11 -05:00
Joshua Sherman
54cb6dfe83 Any closer and it would be done
Had to rework the Model class a bit, there's some weirdness happening and I'm
unsure if it's part of the rewrite or always been busted. Won't really know for
sure until I start porting sites over to it I suppose.
2014-01-20 01:06:22 -05:00
Joshua Sherman
db6e169f7b 95% coverage, getting close. 2014-01-19 22:36:30 -05:00
Joshua Sherman
f3d5d12b9f More testing and fixed capitalization fuck up
Seems I went ahead and munged the capitalization for half of the file.
2014-01-19 18:15:13 -05:00
Joshua Sherman
dada837300 Updated mock model to use a public attribute 2014-01-19 14:27:31 -05:00
Joshua Sherman
07d2348dd1 More model testing
Getting close!
2014-01-19 14:25:15 -05:00
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
68365142e7 Dropped index hinting support
Never gets used, ended up being somewhat MySQL specific as PostgreSQL favors
letting the server handle it instead of hinting at it. Write better queries I
suppose?
2014-01-17 13:14:36 -05:00
Joshua Sherman
57a5b0c2c0 More tests. 2014-01-17 01:53:27 -05:00
Joshua Sherman
191ceaa4e9 Updated module path 2014-01-16 21:42:42 -05:00
Joshua Sherman
9dadc1c821 Removed finally keyword, bringing back 5.4 2014-01-16 17:45:42 -05:00
Joshua Sherman
e662b8f2cd Dropped create database, seems it already exists
Unsure why it was documented that way in the travis-ci docs if it already
existed.
2014-01-16 17:29:58 -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
46b77fa1b1 Added sanity check to resolve missing variable
Unsure why but as of this morning (perhaps because of upgrading to PHP 5.5.8
PHPUnit started barking about _SERVER['HTTP_HOST'] not being set.
2014-01-14 11:34:51 -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
7b7fd901c9 Dropped env stuff. 2014-01-13 02:04:02 -05:00
Joshua Sherman
eea368a5d8 Cleaning up, trying to figure out how to detect env
Travis environment, want to be able to issues commands just on HHVM.
2014-01-13 01:58:59 -05:00
Joshua Sherman
25a2493946 Added services 2014-01-13 01:50:54 -05:00
Joshua Sherman
d289d592ff Added new dependencies to the travis config.
Memcache, memcached and redis have to be loaded to be able to test.
2014-01-13 01:44:23 -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
f1ecc27029 Ripped out the MySQL session handling
Write heavy operations like sessions fare much better in Redis or (sic)
Memcache[d] so I've dropped support for MySQL sessions entirely.
2014-01-13 01:06:07 -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
38d5b503c8 Dropped debugging and fixed a typo 2014-01-12 17:05:53 -05:00
Joshua Sherman
482e4733ed Renamed the file to echo out to 2014-01-12 16:51:35 -05:00
Joshua Sherman
19566bbf5b Dropped php.ini still debugging location 2014-01-12 16:48:45 -05:00
Joshua Sherman
45e80af300 Adding my own php.ini 2014-01-12 16:45:38 -05:00
Joshua Sherman
08f24a686b More debugging. 2014-01-12 16:40:51 -05:00
Joshua Sherman
377f801c2e Moved it to the before script section (maybe?) 2014-01-12 16:38:21 -05:00
Joshua Sherman
8bbf39089f Added some debugging commands
Trying to figure out where I should be echoing the zend_extension line. On my
local system I slapped it to the bottom of the xdebug conf.d file. Unsure if
that directory and/or file even exist.
2014-01-12 16:35:20 -05:00
Joshua Sherman
796a86f969 Switched to zend_extension 2014-01-12 16:32:24 -05:00
Joshua Sherman
b43b02df83 Building the extension worked, but I didn't cd back 2014-01-12 16:28:26 -05:00
Joshua Sherman
8f3c623e5d Added php-test-helpers to the vendors directory
Seemed easier than trying to figure out how to force the prompt to accept the
unknown IP (perhaps not possible at all as it is part of SSH?). `yes` didn't
work, unfortunately.
2014-01-12 16:25:52 -05:00