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
Joshua Sherman
ebc9b7fb38
Added yes
to command
2014-01-12 16:22:04 -05:00
Joshua Sherman
2357469d5b
Added manual install steps
...
Seems the PECL version of test-helpers isn't up to date. Had to compile it
manually locally and evidently have to do the same on travis-ci until pecl is
updated.
2014-01-12 16:17:55 -05:00
Joshua Sherman
984dfe66cc
Added pecl install of test-helpers
2014-01-12 16:13:48 -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
9f3ec38d1a
Dropped API Common class
...
The class didn't provide any value and promised that it would in the future.
Any sort of redundant connection logic should simply be contained in a class
that can be extended and not an API-centric common class. Trying to move away
from all common classes in favor of classes that can be reused in different
parts of the core as well as outside of it.
2014-01-11 18:07:50 -05:00
Joshua Sherman
771c2b59b1
Thinking I got the path worked out
2014-01-11 17:56:29 -05:00
Joshua Sherman
8b04815db6
Fixed path in the command
...
Had it working on the CLI, forgot to put it into the config
2014-01-11 17:50:43 -05:00
Joshua Sherman
d2cf41ce3b
Sorta got it working locally, fingers crossed!
2014-01-11 17:48:35 -05:00
Joshua Sherman
205c0cb0cf
More tweakin’
2014-01-11 17:32:24 -05:00