Minor improvements to the new PHPUnit format

- Added support for the pause command.
- Fixed an issue with stored variables not being available to anonymous function scopes. The variables are now stored on the $test object which is available to anonymous functions.