Refs #116 and sebastianbergmann/phpunit#796.

Added tests for sebastianbergmann/phpunit#799.