Commit graph

115 commits

Author SHA1 Message Date
Josh Sherman
f2f1cbc166 Dropped validate test
All tests were moved to the RouterTest class
2014-09-28 21:51:06 -04:00
Josh Sherman
f62d12f35b Dropped dupe test 2014-09-28 21:50:28 -04:00
Josh Sherman
aea1bae3bf Working on tests for Resource 2014-09-28 21:49:49 -04:00
Josh Sherman
6c173cdc89 Working on tests for the Resource class.
Got a bunch more validation rules to port over.
2014-09-28 09:47:54 -04:00
Josh Sherman
3b8eddc7b5 Dropped status code method
The function `http_response_code` was added in PHP 5.4 which deprecated the
code I had written. Dropped functionality and tests and updated code to use the
new function.
2014-09-28 08:36:14 -04:00
Josh Sherman
da379d0849 Knocked out unit tests for the new Router 2014-09-28 08:24:02 -04:00
Josh Sherman
273af98883 Renamed bootstrap
Made it caps to go along with all of the existing test names
2014-09-28 07:43:28 -04:00
Josh Sherman
0cfc2c7979 Moved tests and updated to use namespaces 2014-09-28 07:31:02 -04:00
Josh Sherman
718f8d64bb Working on basic auth and dropped log class
I personally haven't used it in years so I'm just getting to the mindset that
it's not a very useful piece of functionality. Nginx can easily log all of your
requests and any time I need to troubleshoot SQL (not all that often) I do it
directly without using the class.
2014-09-27 15:37:41 -04:00
Josh Sherman
7108c2c440 Dropped security groups 2014-09-26 07:34:11 -04:00
Josh Sherman
6097e29aef Cleaning up tests 2014-09-26 07:31:04 -04:00
Josh Sherman
d7ad1d148e Dropped deprecated tests 2014-09-25 23:29:05 -04:00
Josh Sherman
39d5b8d40b Cleaned up unit tests
Wanted to get back to the point that the tests were running and not erroring.
2014-09-25 23:11:29 -04:00
Josh Sherman
1381fd82a0 Dropped other classes we don't need any longer 2014-09-24 23:33:03 -04:00
Josh Sherman
0fdf2149be Dropped markup logic
Dropped the display / template rendering layer. API-first, converting to be a
lean mean data driven machine.
2014-09-24 23:24:36 -04:00
Josh Sherman
1718bc27a6 Dropped gravatar method
Seems I had a method in the string class that referenced the now removed
gravatar API wrapper. Dropped the method and the associated test.
2014-09-24 07:24:56 -04:00
Josh Sherman
0090adef7c Dropped AYAH
Going to merge into my AYAH library eventually. For now just need to remove it
2014-09-23 22:52:22 -04:00
Josh Sherman
5f2eaead10 Moved Google Profanity API to it's own repo
It can be found at https://github.com/joshtronic/php-googleprofanity
2014-09-23 22:19:45 -04:00
Josh Sherman
67be4e0889 Dropped Gravatar class
Gone but not forgottten, the class now lives in
https://github.com/joshtronic/php-gravatar
2014-09-23 20:58:12 -04:00
Josh Sherman
2f2dd0d8b8 Moved placehold.it class to it's own repo
Decoupling API wrappers from PICKLES. New location for the API is
https://github.com/joshtronic/php-placeholdit
2014-09-23 20:02:40 -04:00
Josh Sherman
93ee7356b2 Dropped asset minification
Been moving away from using this functionality in favor of either Grunt or
Gulp. Dropped functionality for minification of CSS and JS but left the dynamic
reference logic intact. This will be moved to the HTML class eventually and
expanded to support the generation of the HTML tags as well as injecting the
URI with a timestamp.
2014-09-23 18:22:56 -04:00
Josh Sherman
617eb21614 Converted tabs to spaces. 2014-09-13 17:06:28 -04:00
Josh Sherman
3e08d173a1 Cleaned up issues with phpunit 4.2.x 2014-09-13 16:43:29 -04:00
Josh Sherman
d00ce689b1 Changed username
Updated username in mock config for Model tests.
2014-08-05 20:08:56 -04:00
Josh Sherman
fea03520c8 Reconfigured database username
Seems @travis-ci did make some changes as per their blog. Updated code to use
the username `root` for connections instead of no user.
2014-08-05 18:58:33 -04:00
Josh Sherman
260b532a66 Dropped php-test-helpers for uopz
Seems that uopz has superseded php-test-helpers. Updated the exit overloading and adjusted some tests based on the new behavior of not echoing out the argument passed to exit().
2014-07-12 12:41:47 -04:00
Josh Sherman
018ae0edc1 Adjusted test to accommodate format
It seems like AYAH changed the format of the script URL being returned. I made the last part optional in case the last part of the URL still shows up in legacy type scenarios.
2014-07-12 11:50:50 -04:00
Josh Sherman
5349159c51 Merge branch 'master' of github.com:joshtronic/pickles 2014-05-10 12:52:28 -04:00
Josh Sherman
0870c99ede Added browser refresh method
Closes #44
2014-05-10 12:51:28 -04:00
Joshua Sherman
c2871fca76 Added Placehold.it API wrapper
Closes #17
2014-04-20 19:12:58 -04:00
Joshua Sherman
2763818e49 Updated test RegEx for AYAH
Seems the format being returned doesn't start with ip... updated RegEx to check
for a 45 character alphanumeric instead of ip + 43 character alpha numeric
2014-04-20 18:41:01 -04:00
Joshua Sherman
4c59f7c55b Added round up to Time::ago
Some strings were resulting in returns of "24 hours" and "7 days" that needed to be rounded up to the next increment. Closes #28
2014-02-02 09:47:24 -05:00
Joshua Sherman
0810302e4f Fixed issue with UTF-8 2-byte characters
Characters were being split up and causing invalid sequences when using
`substr()`. Went ahead and updated to use `mb_strcut()` and forcing the
character encoding to UTF-8. I think the plan down the road will be to set the
internal encoding to UTF-8 but I am not currently sure how that could effect
the rest of the system (perhaps it won't). Closes #39
2014-01-26 15:09:16 -05:00
Joshua Sherman
adae3ba468 Moved pickles code to src/ 2014-01-20 23:20:43 -05:00
Joshua Sherman
2c55b25988 Fixing them paths for real. 2014-01-20 22:49:56 -05:00
Joshua Sherman
4e7f442f86 Fixed vendor paths and build path 2014-01-20 22:29:08 -05:00
Joshua Sherman
293f618bef Worked through some bugs, updated dependencies
The vendor directory is now just composer stuff. Planning to rearrange some
files soon but wanted to commit these changes. AYAH is now installed via
composer from a package I am maintaining and I dropped the test helpers as it
is a dev-only requirement (and that's assuming you even want to test).
2014-01-20 22:06:59 -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