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.
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.
<phpunit bootstrap="vendor/autoload.php">
...
<listeners>
<listener class="Unfunco\PHPUnit\Listener\AlternativeTestPrefixListener">
<arguments>
<string>itDoes</string>
<string>itCan</string>
</arguments>
</listener>
</listeners>
</phpunit>
Copyright © 2016 Daniel Morris.
Licensed under the terms of The MIT License.