Commit graph

148 commits

Author SHA1 Message Date
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
Joshua Sherman
7a4f992210 Added TODO and new tests
Catching up the existing tests to include any new functionality that hasn't had a test written yet.
2013-12-31 11:08:19 -05:00
Joshua Sherman
9b1feda909 Added support for custom maintenance templates. 2013-12-31 10:56:31 -05:00
Joshua Sherman
5a15c791c5 Finished up Controller tests for existing functionality 2013-12-31 10:39:21 -05:00
Joshua Sherman
efa8f77eba More tests 2013-12-30 23:29:52 -05:00
Joshua Sherman
c0dbb39bda More tests
Also, found that damn newline that was being output.
2013-12-30 17:13:22 -05:00
Joshua Sherman
74f0adb4f8 Disabled some tests as I figure out the issue, detroyed 5.4 support. 2013-12-30 00:46:29 -05:00
Joshua Sherman
54471c361b So much refactoring... 2013-12-30 00:38:13 -05:00
Joshua Sherman
7f37abc527 Cleaned up test includes a bit
Probably want to include an autoloader at some point. Also added PHP 5.3 and 5.4 to the test list, 5.3 outta fail, unsure about 5.4
2013-12-29 13:16:21 -05:00
Joshua Sherman
064b4d9f55 Reworked Controller around new Display class 2013-12-28 16:23:42 -05:00
Joshua Sherman
e70f31c711 Moved to composer installed vfsSteam
Seems the issue was namespacing this whole time.
2013-12-28 02:08:10 -05:00
Joshua Sherman
fd157c23bc Just a bit more... 2013-12-28 01:54:21 -05:00
Joshua Sherman
054ac575e1 Debugging stuff 2013-12-28 01:52:00 -05:00
Joshua Sherman
a1d9f87a4f More tweaking. 2013-12-28 01:49:52 -05:00
Joshua Sherman
5d14f78d29 More hacking to get vfsStream to load in Travis 2013-12-28 01:44:30 -05:00
Josh Sherman
6b0fed32c6 Added dependencies
Added a hack to work locally for me. May move to using composer to obtain / install vfsStream just didn't like the "vendor" directory, will look into using a custom directory so it can be hidden git ignored.
2013-12-28 01:36:08 -05:00
Josh Sherman
07a95a7508 Built out new Display class with tests
Not hooked up to the Controller yet, wanted to get Travis setup.
2013-12-28 01:13:02 -05:00
Josh Sherman
99a04865e8 Fixed existing tests
Just some small tweaks to get all of the tests passing again. Functionality changed and the tests were not kept up to date.
2013-12-26 15:01:05 -05:00
Josh Sherman
9b297f3d87 Dropped Convert::toJSON()
In an effort to only maintain compatibility with the latest version of PHP (currently the 5.5 branch) I dropped the sanity checks if `json_encode` was available as it is always available in PHP 5.2+. Dropping this sanity check also allowed me to remove the wrapper function and the `JSON_AVAILABLE` constant. Ideally I'd like to move towards dropping the `Convert` class entirely but will need a way to convert an array to XML as the `RSS` class still leverages it. One thought is to move that code right into the `RSS` class as it never gets used elsewhere because XML is gross.
2013-12-24 13:28:49 -05:00
Josh Sherman
f11e3157e3 Tests for the Date class 2012-10-03 17:37:03 -04:00
Josh Sherman
4cf94f9c28 Added tests for the convert class 2012-10-03 09:30:44 -04:00
Josh Sherman
ac63c12d80 Added tests for String class 2012-10-02 23:10:39 -04:00
Josh Sherman
f3ee33e933 Toying with unit tests
Just a start, better than nothing
2012-10-02 16:08:24 -04:00