PHPSpec
for Windows and Linux
for macOS
Ctrl+Alt+S
This page is available only when the PHP and PHPSpec plugins are installed and enabled. The plugins are bundled with PhpStorm and activated by default. If the plugins are not activated, enable them on the Plugins page of the Settings / Preferences Dialog as described in Enabling and Disabling Plugins.
Before you start, make sure the PHP interpreter is configured in PhpStorm on the PHP page, as described in Configuring Local PHP Interpreters and Configuring Remote PHP Interpreters.
On this page, configure installations of the PHPSpec toolset available through configured local and remote PHP interpreters and thus enable behaviour-driven development in PhpStorm. The page consists of two panes:
PHP interpreters
The central pane of the page shows a list of configured PHP interpreters that are associated with PHPSpec installations. The list contains at least one item (Local) which cannot be removed. The contents of the right-hand pane depend on the type of the selected interpreter.
- To add a remote interpreter to the list, click on the toolbar of the pane and choose the relevant interpreter in the PHPSpec by remote interpreter dialog that opens. Then specify the details of the PHPSpec installation to use with this interpreter.
- To remove a remote interpreter from the list, select the relevant interpreter and click . The PHPSpec configuration associated with the interpreter is also removed.
See Configuring Remote PHP Interpreters for details.
PHPSpec configuration
Item | Description |
---|---|
CLI Interpreter | This area shows:
The field is read-only, to update the chosen interpreter configuration or create a new one, click the whereupon PhpStorm brings you to the Interpreters dialog box. |
PHPSpec Library | In this area, specify the PHPSpec installation to use.
|
Test Runner | In this area, appoint the configuration .yml file to use for launching and executing specifications. By default, PHPSpec looks for a
|