Create New PHP Test Dialog
Use this dialog to configure generation of PHP test class stubs for the supported test frameworks.
Item | Description |
---|---|
Test file template | In this list, select the test file template based on which the test class will be generated. PhpStorm provides the built-in templates for the following test frameworks: PHPUnit, Codeception, and PHPSpec. |
Class To Test (optional) | In this area, specify the production class to generate a test class for. Type the fully qualified name of the class in the Fully qualified name text box. The specified name will be used to propose the Test Class Name. To use completion, press Ctrl+Space and choose the relevant production class from the pop-up list. |
Test Class |
|
Generate test methods for | In the table, select the checkboxes next to the production class methods you want to generate test method stubs for. To include inherited methods from parent classes, select the Show inherited methods checkbox. PhpStorm will automatically compose the test methods' names as You can customize the code templates used for generating test method stubs on the Code tab of the File and Code Templates settings page. |
Last modified: 27 July 2018