Refs #116 and sebastianbergmann/phpunit#796.

 * Added tests for sebastianbergmann/phpunit#798.
Merge pull request #117 from whatthejeff/issue_116