Download the PHP package brickie-toolshed/netbeans-phpunit-support without Composer
On this page you can find all versions of the php package brickie-toolshed/netbeans-phpunit-support. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download brickie-toolshed/netbeans-phpunit-support
More information about brickie-toolshed/netbeans-phpunit-support
Files in brickie-toolshed/netbeans-phpunit-support
Package netbeans-phpunit-support
Short Description This package provides another phpunit support to netbeans than the original one.
License MIT
Informations about the package netbeans-phpunit-support
Netbeans Phpunit Support
This package provides another phpunit support to netbeans than the original one.
Health status
Supported PHPUnit versions
- version 0.1.0 supports PHPUnit 4
- version 0.2.1 supports PHPUnit >= 7 but < 9
- version 0.3.0 supports PHPUnit >= 9
Installation
Locally
Run composer require brickie-toolshed/netbeans-phpunit-support:[VERSION]
within your project directory.
Where [VERSION] is one of the versions above.
Globally
Run composer global require brickie-toolshed/netbeans-phpunit-support:[VERSION]
within your project directory.
Where [VERSION] is one of the versions above.
NetBeans configuration
- create a phpunit configuration file named
phpunit.xml
at the root of your project directory - enable phpunit support in the NetBeans Project Properties > Testing panel
- check the Use Custom Test Suite checkbox in the NetBeans Project Properties > Testing > PHPUnit panel
- click Browse... and select the test suite provider file:
./src/TestSuiteProvider.php
of this package - click OK
Note
you can specify the path of a custom phpunit configuration file usingTestSuiteProvider::setConfigurationFile("/path/to/config.xml")
method in a bootstrap file
Why this package
The TestSuiteProvider
class uses the test suite set in your phpunit configuration file.
The default behaviour of the NetBeansSuite
class provided by NetBeans is to create the test suite by looking for files in the test directory.
The problem is that the test case lookup lies on hard coded file naming patterns and the phpunit configuration file is not used.
License
This project is licensed under the terms of the MIT License