2017 © Pedro Peláez
 

library phpunit-bin

Global phpunit cli script that finds your project's phpunit and runs it.

image

evert/phpunit-bin

Global phpunit cli script that finds your project's phpunit and runs it.

  • Monday, May 16, 2016
  • by evert
  • Repository
  • 2 Watchers
  • 19 Stars
  • 60 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 3 Forks
  • 0 Open issues
  • 4 Versions
  • 2 % Grown

The README.md

PHPUnit script invoker

Many PHP projects now supply [PHPUnit][1] via require-dev in composer. This means that to run PHPUnit, you often have to supply a full path to the local phpunit binary., (*1)

This package is intended to be installed globally, and supplies you with a phpunit script as well., (*2)

This script will automatically find a composer.json in your current path or one of its parents, and find the correct "local" phpunit script and runs it for you., (*3)

In addition to that, it will also attempt to find phpunit.xml or phpunit.xml.dist and change the working directory to that path before running the real phpunit script., (*4)

This means that using this script, you can just invoke phpunit from wherever you are in your project, and it will run it correctly., (*5)

Installation

composer global require evert/phpunit-bin

Make sure that after you run that, your global composer bin directory is in your $PATH. This is usually ~/.composer/vendor/bin, or ~/.config/composer/vendor/bin, (*6)

The Versions

16/05 2016

dev-master

9999999-dev

Global phpunit cli script that finds your project's phpunit and runs it.

  Sources   Download

MIT

The Requires

  • php >=5.5

 

16/05 2016

1.1.0

1.1.0.0

Global phpunit cli script that finds your project's phpunit and runs it.

  Sources   Download

MIT

The Requires

  • php >=5.5

 

16/02 2016

1.0.1

1.0.1.0

Global phpunit cli script that finds your project's phpunit and runs it.

  Sources   Download

MIT

The Requires

  • php >=5.5

 

16/02 2016

1.0.0

1.0.0.0

Global phpunit cli script that finds your project's phpunit and runs it.

  Sources   Download

MIT

The Requires

  • php >=5.5