# Project Properties Window: PHPUnit

In this dialog, set custom PHPUnit properties for your project.

Element | Description
--- | ---
Use bootstrap | A custom bootstrap file is required for projects that use a custom class loader, for example by implementing the __autoload() magic function. You also use the bootstrap option if you need to include a file in advance, such as a file that defines global constants used by multiple classes in your project. Click Browse to locate custom bootstrap files on your local file system. Click Generate to generate a skeleton bootstrap file.
Use XML Configuration | The XML configuration file allows you to define options that you use in a command line call. You can also use the XML configuration file to define `php.ini` settings and global vars for your test cases. You can also set the bootstrap option in the XML configuration file. See the PHPUnit manual for more details. Click Browse to locate custom XML configuration files on your local file system. Click Generate to generate a skeleton XML Configuration file.
Use Custom Test Suite | If you set a custom test suite, you run that suite whenever you select Run > Test Project. This is particularly useful when you wish to run only a subset of your tests, or if you want to use recently added features of PHPUnit that you have to add manually, such as Data Providers. Note that you may define as many test suites as you want and run them separately. To run a test suite, right-click the test suite file in your project explorer and choose "run". Click Browse to locate custom test suites on your local file system.
Use Custom PHPUnit Script | Select a custom PHPUnit script to use for this project. If you select this option, browse for the custom script. If you do not select this option, the project uses the default PHPUnit script specified in Tools > Options (NetBeans Preferences on Mac) > PHP > Unit Testing.
Run All *Test Files Using PHPUnit | Forces the IDE to run all files with the name *Test.php using PHPUnit, regardless of the file's location in the project. When this option is not enabled, only files in the Test Files folder are run using PHPUnit.
Ask For Test Groups Before Running Tests | Select this if you are using test groups and you want the IDE to prompt you for which test groups to run before running the tests. Add test groups to your code with the `@Group` variable. `/**` `* @group production` `* @group development` `*/` `[Test method]`

Related Topics

Developing Applications with NetBeans IDE,

Copyright © 2015, Oracle and/or its affiliates. All rights reserved.