Download the PHP package austp/phpci-pho-plugin without Composer
On this page you can find all versions of the php package austp/phpci-pho-plugin. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package phpci-pho-plugin
phpci-pho-plugin
This is a plugin for PHPCI. It allows you to run pho tests via PHPCI.
Installation
- Navigate to your PHPCI path.
cd /path/to/phpci
- Edit the composer.json file.
nano composer.json
-
Add
"austp\/phpci-pho-plugin": "~1.1"
in the"require"
section."require": { ..., ..., "austp\/phpci-pho-plugin": "~1.1" }
- Download the plugin via composer.
composer update austp/phpci-pho-plugin
-
Copy
build-plugins/pho.js
to/path/to/phpci/public/assets/js/build-plugins/pho.js
cd /path/to/phpci/vendor/austp/phpci-pho-plugin/build-plugins cp pho.js /path/to/phpci/public/assets/js/build-plugins/pho.js
That's it as far as installation goes. Continue reading to see available options.
Configuration
In order to configure PHPCI to run pho, you need to edit the phpci.yml
file.
If you don't already have this file in your repository, go ahead and add it.
Note: If you can't add a phpci.yml file to the repo, you can edit your project in PHPCI and configure it there.
Options
directory: "specs/" | The directory to run the tests on.
log: true | (optional) Log pho's output to PHPCI.
executable: "/path/to/pho" | (optional) Full path to a pho executable.
bootstrap: "bootstrap.file" | (optional) Bootstrap file to load.
filter: "filter" | (optional) Run specs according to this filter.
namespace: true | (optional) Only use namespaced functions.
phpci.yml
- Navigate to your repository.
cd /path/to/repo
- Edit the phpci.yml file.
nano phpci.yml
-
Add
\PHPCI_Pho_Plugin\Pho:
in the"test"
section.test: ...: ...: ... ...: ... ...: ...: ... \PHPCI_Pho_Plugin\Pho:
-
Add your options under the
\PHPCI_Pho_Plugin\Pho:
line.\PHPCI_Pho_Plugin\Pho: directory: "specs/" log: true