mirror of
https://github.com/Respect/Validation.git
synced 2024-06-08 16:52:16 +02:00
Readme fix
This commit is contained in:
parent
d25f7220dc
commit
47f0543ecf
20
README.rdoc
20
README.rdoc
|
@ -1,23 +1,3 @@
|
|||
== About
|
||||
|
||||
Respect\Validation aims to be the most awesome validation toolkit ever created
|
||||
|
||||
Single validator usage samples:
|
||||
|
||||
<?php
|
||||
|
||||
use Respect\Validation\Validator as v;
|
||||
|
||||
//Returns true or false
|
||||
v::isDate('2009-12-01', 'between', '2008-01-01', '2010-10-10');
|
||||
|
||||
//Exception sample
|
||||
try {
|
||||
v::validDate('2009-12-01', 'between', '2008-01-01', '2010-10-10');
|
||||
} catch (Date\OutOfBoundsException $e) {
|
||||
echo $e->getMessage();
|
||||
}
|
||||
|
||||
//Raw constructor sample
|
||||
$dateValidator = new Date\Between('2008-01-01', '2010-10-10');
|
||||
$dateValidator->isValid('2009-12-01');
|
||||
|
|
|
@ -7,6 +7,7 @@ use Respect\Validation\InvalidException;
|
|||
|
||||
class AllTest extends ValidatorTestCase
|
||||
{
|
||||
|
||||
protected $object;
|
||||
|
||||
protected function setUp()
|
||||
|
|
Loading…
Reference in a new issue