README update to clarify testing requirements

This commit is contained in:
Vance Lucas 2013-03-05 09:33:33 -06:00
parent 650db517b4
commit fdaa2d6502

View File

@ -101,12 +101,20 @@ case of an error. The callback provided should return boolean true or
false. false.
``` ```
Valitron\Validation::addRule('alwaysFail', function($field, $value, Valitron\Validation::addRule('alwaysFail', function($field, $value, array $params) {
array $params) {
return false; return false;
}, 'Everything you do is wrong. You fail.'); }, 'Everything you do is wrong. You fail.');
``` ```
## Running Tests
The test suite depends on the Composer autoloader to load and run the
Valitron files. Please ensure you have downloaded and installed Composer
before running the tests:
1. Download Composer `curl -s http://getcomposer.org/installer | php`
2. Run 'install' `php composer.phar install`
3. Run the tests `phpunit`
## Contributing ## Contributing
@ -117,4 +125,6 @@ array $params) {
5. Commit your changes (`git commit -am 'Added some feature'`) 5. Commit your changes (`git commit -am 'Added some feature'`)
6. Push to the branch (`git push origin my-new-feature`) 6. Push to the branch (`git push origin my-new-feature`)
7. Create new Pull Request 7. Create new Pull Request
8. Pat yourself on the back for being so awesome