unfunco/phpunit-alternative-test-prefix

This package is abandoned and no longer maintained. No replacement package was suggested.

Listener for PHPUnit that allows for alternative test method prefixes to be specified within the PHPUnit configuration file.

0.1.1 2016-03-10 18:42 UTC

This package is not auto-updated.

Last update: 2020-01-18 05:07:46 UTC


README

Build Status

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.