unfunco / phpunit-alternative-test-prefix
Listener for PHPUnit that allows for alternative test method prefixes to be specified within the PHPUnit configuration file.
Installs: 20
Dependents: 0
Suggesters: 0
Security: 0
Stars: 4
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/unfunco/phpunit-alternative-test-prefix
Requires
- php: >=5.6
Requires (Dev)
- phpunit/phpunit: ~5.2
This package is not auto-updated.
Last update: 2020-01-18 05:07:46 UTC
README
Listener for PHPUnit that allows for alternative test method prefixes to be specified within the PHPUnit configuration
file, without also having to use the @test
annotation.
Installation and usage
Add unfunco/phpunit-alternative-test-prefix
to your require-dev
dependencies and run composer install
, once
installed you can configure the alternative test prefix listener within your test configuration.
Configuration
<phpunit bootstrap="vendor/autoload.php"> ... <listeners> <listener class="Unfunco\PHPUnit\Listener\AlternativeTestPrefixListener"> <arguments> <string>itDoes</string> <string>itCan</string> </arguments> </listener> </listeners> </phpunit>
License
Copyright © 2016 Daniel Morris.
Licensed under the terms of The MIT License.