joindin/joind.in — pull request #695 by dstockto (2013-02-08 07:38:54+00:00)
Title: JOINDIN-249 - Unit tests for Request object in API v2

This PR represents 41 new unit tests surrounding the Request object in the v2 API. There are some minor refactorings that allow for easier testability.

The tests provide 100% code coverage on the Request class. It also includes a phpunit.xml for PHPUnit tests for API v2 and a bootstrap that just loads the autoloader.

With the changes to the Request object, the jasmine tests are all still passing for me but it would be good to verify on another machine anyway. It seems the jasmine tests are data dependent as I had to make updates to an event record to make them pass initially.

The other updates are for formatting and doc comments.

Since additional tests would rely on new files like bootstrap and phpunit.xml I'd like to get this integrated as soon as possible so I can build additional tests along with these.
![Screenshot_2_8_13_12_37_AM](https://f.cloud.github.com/assets/775393/138687/7ac81c4c-71c2-11e2-9d1e-730887aadf2b.png)