mirror of
https://github.com/vlucas/valitron.git
synced 2025-12-31 07:01:54 +00:00
README update to clarify testing requirements
This commit is contained in:
parent
650db517b4
commit
fdaa2d6502
14
README.md
14
README.md
@ -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
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user