Giter VIP home page Giter VIP logo

phpunit-bin's Introduction

PHPUnit script invoker

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

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

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.

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.

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

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

phpunit-bin's People

Contributors

bcremer avatar evert avatar seldaek avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

phpunit-bin's Issues

name conflict with real phpunit

I have installed phpunit globally, so installing this packes brings the following error:

Skipped installation of bin phpunit for package evert/phpunit-bin: name conflicts with an existing file

I love the idea of the project, so it would be great if you rename the bin file. I can do it myself and submit a PR - I have only to rename the file and fix composer.json, right?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.