dohzoh / phpspec-fuel
fuelphp1.x extension for phpspec
0.2
2014-11-24 08:06 UTC
Requires
- php: >=5.3.3
- monolog/monolog: 1.5.*
- phpspec/phpspec: ~2.0
- phpunit/phpunit: 3.7.*
Requires (Dev)
- behat/behat: dev-master
- bossa/phpspec2-expect: dev-master
- fuel/core: 1.7.2
- squizlabs/php_codesniffer: dev-phpcs-fixer
This package is not auto-updated.
Last update: 2024-12-17 03:30:29 UTC
README
Extension for using PhpSpec with FuelPHP framework
Installation
Download fuelphp framework from http://fuelphp.com/downloads
wget -O fuelphp.zip http://fuelphp.com/files/download/28
unzip fuelphp.zip
cd fuelphp-1.7.2
And install to use composer
php composer.phar config bin-dir "bin/"
php composer.phar require dohzoh/phpspec-fuel dev-master --prefer-dist
Setting
cp fuel/vendor/dohzoh/phpspec-fuel/phpspec.yml.dist phpspec.yml
Usage
bin/phpspec describe Model_Blog
bin/phpspec run
Configuration
You specify the applicaiton root in phpspec.yml, for example:
src_path: fuel/app
spec_path: fuel/app/tests
phpunit.xml: fuel/core/phpunit.xml
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/