Adam Wathan has a post over on his site showing you how you can optimize your PHPUnit workflow in Sublime Text with the help of a few handy snippets.
I've been a big fan of Sublime Text's snippets feature for years.They make it really easy to generate repetitive boilerplate code, and if you know how to use placeholders and substitutions properly, you can do some pretty magical stuff.
He shares some of his own snippets for automagically:
- creating a new test matching the filename currently selected
- making new test methods with some placeholder content
- making the tests easier to run
For this last point he shows the use of the Sublime PHPUnit package to run the tests through the Sublime menu. Finally he ties it all together in a much simpler workflow including a final "all tests" run before he commits.