From fdaa2d65021c7d16b7ed859c2a3dcf5647cc1b5a Mon Sep 17 00:00:00 2001 From: Vance Lucas Date: Tue, 5 Mar 2013 09:33:33 -0600 Subject: [PATCH] README update to clarify testing requirements --- README.md | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 1b0ca27..8d9a4b1 100644 --- a/README.md +++ b/README.md @@ -101,12 +101,20 @@ case of an error. The callback provided should return boolean true or false. ``` -Valitron\Validation::addRule('alwaysFail', function($field, $value, -array $params) { +Valitron\Validation::addRule('alwaysFail', function($field, $value, array $params) { return false; }, '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 @@ -117,4 +125,6 @@ array $params) { 5. Commit your changes (`git commit -am 'Added some feature'`) 6. Push to the branch (`git push origin my-new-feature`) 7. Create new Pull Request +8. Pat yourself on the back for being so awesome +