phpspec/kohana-extension

Kohana 3.0 extension for phpspec

v0.2.0 2014-07-10 09:00 UTC

This package is not auto-updated.

Last update: 2024-11-19 07:50:36 UTC


README

Extension for using PhpSpec with Kohana framework

Create a composer.json file:

{
    "require-dev": {
        "phpspec/kohana-extension": "0.2.*"
    },
    "config": {
        "bin-dir": "bin"
    },
    "autoload": {"psr-0": {"": "public/application/classes"}}
}
cp vendor/phpspec/kohana-extension/phpspec.yml.dist phpspec.yml
bin/phpspec describe Acme_Driver_Formatter
bin/phpspec run

You specify the applicaiton root in phpspec.yml, for example:

application_root: public/application

This will usually match the path you set for your composer autoload to search for classes.

For documentation on how to use phpspec, see: http://www.phpspec.net/