1. Open menu run->external tools->open external tools dialog.
2. Click program and add new launch configuration. Give it a name you like.
3. In the main tab under location browse file system and add your php thingy.
4. Under arguments add this:
Code: Select all
-B "require_once 'PHPUnit/Util/Filter.php';
PHPUnit_Util_Filter::addFileToFilter(__FILE__, 'PHPUNIT');
require 'PHPUnit/TextUI/Command.php';" ${resource_name}6. Go to tab 'common', check 'allocate console'. The console will dispaly the phpunit test results.
Also check 'display in favorites menu'.
Apply all and run. Note: you have to have a test file in your editor, otherwise it will give an error.
If you don't like it you can remove it easily in the external tools dialog so no harm will be done.
I think the same process would apply to simpletest. Maybe even simpler since step 4 would be simpler. But I haven't done this.