Git Product home page Git Product logo

phpunit's Introduction

PHPUnit extension for Chassis

Install PHPUnit within your Chassis box! The PHPUnit extension automatically sets up your Chassis instance with the phpunit executable, for use running PHP unit tests.

Activation

Automated Installation

To add the phpunit extension to a Chassis box, include chassis/phpunit in the extensions list within your config.local.yaml file:

extensions:
    - chassis/phpunit

Then run vagrant provision to instruct Chassis to download and install the new extension.

Manual Installation

Ensure you have a Chassis instance set up locally already.

# In your Chassis dir:
cd extensions

# Grab the extension
git clone --recursive https://github.com/Chassis/phpunit.git phpunit

# Reprovision
cd ..
vagrant provision

Usage

vagrant ssh
cd /vagrant/content/{plugins|themes}/yourdirectory
phpunit

You're now ready to run phpunit within your Chassis virtual machine!

Specifying a version

To specify a version of PHPUnit to install, add the following to your Chassis config file:

phpunit:
  version: 5.7

You can specify the version to with either two or three digits, eg 5.7 or 5.7.10.

For PHP versions 7.0 and over the default version is 5.7. For PHP version 5.6 the default version is 4.8.

Version Support

We currently support the following versions of PHPUnit:

  • 4.8
  • 6.5
  • 7.5
  • 8.x
  • 9.x

phpunit's People

Contributors

bronsonquick avatar kadamwhite avatar peterwilsoncc avatar

Watchers

 avatar

phpunit's Issues

Add `unless` parameters to Puppet

Currently the phpunit extension runs on every provision. We should only run it if phpunit doesn't exist or if it doesn't match the version that the developer has requested.

Error: Evaluation Error: Error while evaluating a Function Call, 'versioncmp' parameter 'b' expects a String value, got Float (file: /vagrant/extensions/phpunit/modules/phpunit/manifests/init.pp, line: 23, column: 11) on node vagrant.local

Looks like we need an update for Bionic Beaver.

Error: Evaluation Error: Error while evaluating a Function Call, 'versioncmp' parameter 'b' expects a String value, got Float (file: /vagrant/extensions/phpunit/modules/phpunit/manifests/init.pp, line: 23, column: 11) on node vagrant.local

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.