phpspec / kohana-extension
Kohana 3.0 extension for phpspec
v0.2.0
2014-07-10 09:00 UTC
Requires
- php: >=5.3.3
- phpspec/phpspec: ~2.0
Requires (Dev)
- behat/behat: *
- bossa/phpspec2-expect: dev-master
This package is not auto-updated.
Last update: 2024-12-17 08:11:01 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/