This procedure describes how to run a PHPUnit Test Case in a file and on a single method within the file, and how to analyze the results.
Before running a PHPUnit Test Case, one needs to be created by following the instructions under Creating a PHPUnit Test Case.
|
|
|
To Run a PHPUnit Test Case:
|
Once
you have corrected errors, you can re-run the PHPUnit Test by
clicking the Run Last Test button |
|
|
|
To Run a single PHPUnit Test Case on a method within the file:
|
Once
you have corrected errors, you can re-run the PHPUnit Test by
clicking the Run Last Test button Note: Currently, debugging a single PHP test is not possible. |
|
|
|
To Debug a PHPUnit Test Case:
|
Once
you have corrected errors, you can re-run the PHPUnit Test by
clicking the Run Last Test button |
You can transform the xml file created with while running the PHPUnit
Teasr into an HTML report using the Report Generator icon
. See Reporting on PHPUnit
Test Results for more details.