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.
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.