Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/chassis/phpunit
A Chassis extension to install phpunit.
https://github.com/chassis/phpunit
chassis chassis-extension puppet wordpress-development
Last synced: about 1 month ago
JSON representation
A Chassis extension to install phpunit.
- Host: GitHub
- URL: https://github.com/chassis/phpunit
- Owner: Chassis
- Created: 2019-03-06T18:40:56.000Z (almost 6 years ago)
- Default Branch: main
- Last Pushed: 2021-12-14T01:44:42.000Z (about 3 years ago)
- Last Synced: 2024-11-09T14:37:24.443Z (3 months ago)
- Topics: chassis, chassis-extension, puppet, wordpress-development
- Language: Puppet
- Size: 19.5 KB
- Stars: 0
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# PHPUnit extension for Chassis
Install PHPUnit within your [Chassis](http://chassis.io/) 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:
```yml
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