Skip to content
This repository has been archived by the owner on Dec 16, 2018. It is now read-only.

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

License

Notifications You must be signed in to change notification settings

unfunco/phpunit-alternative-test-prefix

Repository files navigation

PHPUnit alternative test prefix listener

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.

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages