IntelliJ IDEA 12.1.0 Web Help

Project tool window | context menu of a PHP class | Generate PHPUnit Test

Project tool window | context menu of a PHP class | Generate PHPUnit Test

Note

The dialog box and the menu item are available only when the Skeleton Generator tool is installed and enabled in the project.

Use this dialog box to specify the name and location of a PHPUnit test generated on the basis of an existing PHP class.

Item Description
Output test class name This In this text box, type the name to assign to the test class that will be generated. By default, IntelliJ IDEA suggests the following name: <class for which the test is generated>Test.
Output file name In this text box, type the name of the file that will contain the generated class. By default, IntelliJ IDEA suggests the following name: <output test class name>.php.
Output Directory In this text box, specify the path to the directory, where the generated unit test class will be stored. By default, IntelliJ IDEA suggests the current directory. Accept the suggestion or specify another location. Type the path manually or click the Browse button browseButton.png and select the desired folder in the Choose Test Directory dialog box that opens.

See Also

Procedures:

Reference:

Web Resources: