![]() In the field, specify the location of the script. You can also type the path to a bootstrap file to have a PHP script always executed before launching tests. You can appoint a custom configuration file. In this area, appoint the configuration XML file to use for launching and executing scenarios.īy default, PHPUnit looks for a phpunit.xml or configuration file in the project root folder. See Configure remote PHP interpreters for details. Alternatively, click next to the field and specify the settings manually. In most cases, PhpStorm detects the path mappings and the container settings and fills in all the fields automatically. These settings may include the volume configuration, the exposed ports, the network, and so on. The Docker container settings that will be used to start the container from an image. The Path Mappings between your local sources and the sources inside the Vagrant instance, or the Docker container, or on the remote host. Click to update the chosen interpreter in the Interpreters dialog. The remote PHP CLI Interpreter to use PHPUnit with. The area is shown only for PHPUnit by Remote Interpreter configurations and displays the following: In either case, PhpStorm will load the archive before test execution. link to have PhpStorm download it automatically. If you have no phar archive on your computer yet, click the Download phpunit.phar. Type the path manually or click and select the file in the dialog that opens. If you already have a phpunit.phar archive in your project, specify its location in the Path to phpunit.phar field. Specify the location of autoload.php in the Path to script field.Ĭhoose this option to run PHPUnit from the phar archive. The package is retrieved and loaded by the autoload.php file from the vendor folder. The available options are as follows:Ĭhoose this option to run PHPUnit installed by the Composer dependency manager. In this area, specify the type of PHPUnit installation. In this pane, configure installations of PHPUnit to be used with PHP interpreters. For PHPUnit, you can also specify a bootstrap file to use. Optionally, specify the configuration file. ![]() In the right-hand pane, choose where to take the test framework from.įor Behat, PHPSpec, and Codeception, type the path to the framework executable.įor PHPUnit, specify the type of framework installation you are using, the available options are composer autoloader autoload.php, or phpunit.phar archive, or PEAR.Ĭheck the chosen remote PHP interpreter and path mappings. You can configure any test framework to use with a local or remote PHP interpreter.įor a remote configuration, choose one of the configured PHP interpreters: ![]() Click and choose the relevant configuration type from the list: The contents of the right-hand pane depend on the test framework and the type of the selected interpreter.Ĭhoose how you will use the framework. The central pane shows existing configurations of test frameworks for different interpreters. With PhpStorm, you can run and debug PHPUnit, Behat, Codeception, and PHPSpec tests. Use this page to integrate PHP-specific testing frameworks with PhpStorm in the current project.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |