HowTo create a Test Case Class from a PHP Class¶
To create a Test Case from a PHP Class follow these steps:
1. You have to configure PHPUnit first.
2. Right click on the PHP Class on PHP Explorer and select New -> PHPUnit Test Case.
If this option is missing you can also click on Other... and select PHP -> PHPUnit -> PHPUnit Test Case. To activate the shortcuts you have to reset your perspective (Window -> Reset Perspective...).
3. Now you should see the prefilled wizard page. If the target file already exists all missing test methods will be supplemented.
4. Click Finish to create the Test Case.