2017 © Pedro Peláez
 

library phpci-pho-plugin

A plugin for PHPCI to run pho tests

image

austp/phpci-pho-plugin

A plugin for PHPCI to run pho tests

  • Tuesday, January 20, 2015
  • by AustP
  • Repository
  • 1 Watchers
  • 1 Stars
  • 22 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 8 Versions
  • 0 % Grown

The README.md

phpci-pho-plugin

This is a plugin for PHPCI. It allows you to run pho tests via PHPCI., (*1)

Installation

  1. Navigate to your PHPCI path. cd /path/to/phpci
  2. Edit the composer.json file. nano composer.json
  3. Add "austp\/phpci-pho-plugin": "~1.1" in the "require" section., (*2)

    "require": {
      ...,
      ...,
      "austp\/phpci-pho-plugin": "~1.1"
    }
  4. Download the plugin via composer. composer update austp/phpci-pho-plugin
  5. Copy build-plugins/pho.js to /path/to/phpci/public/assets/js/build-plugins/pho.js, (*3)

    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., (*4)

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., (*5)

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

  1. Navigate to your repository. cd /path/to/repo
  2. Edit the phpci.yml file. nano phpci.yml
  3. Add \PHPCI_Pho_Plugin\Pho: in the "test" section., (*6)

    test:
      ...:
        ...: ...
        ...: ...
      ...:
        ...: ...
      \PHPCI_Pho_Plugin\Pho:
  4. Add your options under the \PHPCI_Pho_Plugin\Pho: line., (*7)

    \PHPCI_Pho_Plugin\Pho:
      directory: "specs/"
      log: true

The Versions

20/01 2015

dev-master

9999999-dev https://github.com/austp/phpci-pho-plugin

A plugin for PHPCI to run pho tests

  Sources   Download

MIT

The Requires

 

by Aust P

plugin bdd test pho phpci

20/01 2015

1.1.3

1.1.3.0 https://github.com/austp/phpci-pho-plugin

A plugin for PHPCI to run pho tests

  Sources   Download

MIT

The Requires

 

by Aust P

plugin bdd test pho phpci

20/01 2015

1.1.2

1.1.2.0 https://github.com/austp/phpci-pho-plugin

A plugin for PHPCI to run pho tests

  Sources   Download

MIT

The Requires

 

by Aust P

plugin bdd test pho phpci

20/01 2015

1.1.1

1.1.1.0 https://github.com/austp/phpci-pho-plugin

A plugin for PHPCI to run pho tests

  Sources   Download

MIT

The Requires

 

by Aust P

plugin bdd test pho phpci

20/01 2015

1.1.0

1.1.0.0 https://github.com/austp/phpci-pho-plugin

A plugin for PHPCI to run pho tests

  Sources   Download

MIT

The Requires

 

by Aust P

plugin bdd test pho phpci

16/01 2015

1.0.2

1.0.2.0 https://github.com/austp/phpci-pho-plugin

A plugin for PHPCI to run pho tests

  Sources   Download

MIT

The Requires

 

by Aust P

plugin bdd test pho phpci

15/01 2015

1.0.1

1.0.1.0 https://github.com/austp/phpci-pho-plugin

A plugin for PHPCI to run pho tests

  Sources   Download

MIT

The Requires

 

by Aust P

plugin bdd test framework unit behavior driven development pho phpci

15/01 2015

1.0.0

1.0.0.0 https://github.com/austp/phpci-pho-plugin

A plugin for PHPCI to run pho tests

  Sources   Download

MIT

The Requires

 

by Aust P

plugin bdd test framework unit behavior driven development pho phpci