Skip to content
This repository
Browse code

Fixed typos

  • Loading branch information...
commit 2776a405cbd30cc4987fa8c40f8d76cfe655d549 1 parent 9be0ee8
Pascal Borreli authored
20  README.md
Source Rendered
@@ -33,7 +33,7 @@ The Hello World validator is something like this:
33 33
 ### Chained Validation
34 34
 
35 35
 It is possible to use validators in a chain. Sample below validates a string
36  
-containing numbers and letters, no whitspace and length between 1 and 15.
  36
+containing numbers and letters, no whitespace and length between 1 and 15.
37 37
 
38 38
     $usernameValidator = v::alnum()->noWhitespace()->length(1,15);
39 39
     $usernameValidator->validate('alganet'); //true
@@ -62,7 +62,7 @@ validated object as the first node in the chain.
62 62
 ### Input optional
63 63
 
64 64
 All validators treat input as optional and will accept empty string input as valid,
65  
-unless otherwies stated in the documentation.
  65
+unless otherwise stated in the documentation.
66 66
 
67 67
 We us the `v:notEmpty()` validator prefixed to disallow empty input and effectively
68 68
 define the field as mandatory as input will be required or validation will fail.
@@ -85,7 +85,7 @@ Once created, you can reuse your validator anywhere. Remember $usernameValidator
85 85
 
86 86
 ### Informative Exceptions
87 87
 
88  
-When something goes wrong, Validation can tell you exacty what's going on. For this,
  88
+When something goes wrong, Validation can tell you exactly what's going on. For this,
89 89
 we use the `assert()` method instead of `validate()`:
90 90
 
91 91
     try {
@@ -277,7 +277,7 @@ Reference
277 277
 ### Regional
278 278
 
279 279
   * v::tld()
280  
-  * v::coutryCode()
  280
+  * v::countryCode()
281 281
 
282 282
 ### Files
283 283
 
@@ -913,7 +913,7 @@ See also:
913 913
 Validates if the input is an instance of the given class or interface.
914 914
 
915 915
     v::instance('DateTime')->validate(new DateTime); //true
916  
-    v::instance('Traversable')->validate(new ArrayObjet); //true
  916
+    v::instance('Traversable')->validate(new ArrayObject); //true
917 917
 
918 918
 Message template for this validator includes `{{instanceName}}`.
919 919
 
@@ -1165,7 +1165,7 @@ Negates any rule.
1165 1165
 
1166 1166
     v::not(v::ip())->validate('foo'); //true
1167 1167
 
1168  
-using a shorcut
  1168
+using a shortcut
1169 1169
 
1170 1170
     v::ip()->not()->validate('foo'); //true
1171 1171
 
@@ -1175,7 +1175,7 @@ You can negate complex, grouped or chained validators as well:
1175 1175
 
1176 1176
     v::not(v::int()->positive())->validate(-1.5); //true
1177 1177
 
1178  
-using a shorcut
  1178
+using a shortcut
1179 1179
 
1180 1180
     v::int()->positive()->not()->validate(-1.5); //true
1181 1181
 
@@ -1188,7 +1188,7 @@ See also:
1188 1188
 #### v::notEmpty()
1189 1189
 
1190 1190
 Validates if the given input is not empty or in other words is input mandatory and
1191  
-roequired. This function also takes whitespace into account, use `noWhitespace()`
  1191
+required. This function also takes whitespace into account, use `noWhitespace()`
1192 1192
 if no spaces or linebreaks and other whitespace anywhere in the input is desired.
1193 1193
 
1194 1194
     v::string()->notEmpty()->validate(''); //false
@@ -1402,7 +1402,7 @@ For arrays:
1402 1402
 
1403 1403
     v::startsWith('lorem')->validate(array('lorem', 'ipsum')); //true
1404 1404
 
1405  
-`true` may be passed as a parameter to indicate idetical comparison
  1405
+`true` may be passed as a parameter to indicate identical comparison
1406 1406
 instead of equal.
1407 1407
 
1408 1408
 Message template for this validator includes `{{startValue}}`.
@@ -1492,7 +1492,7 @@ See also:
1492 1492
 A ternary validator that accepts three parameters.
1493 1493
 
1494 1494
 When the $if validates, returns validation for $then.
1495  
-When the $if doesnt' validate, returns validation for $else.
  1495
+When the $if doesn't validate, returns validation for $else.
1496 1496
 
1497 1497
     v::when(v::int(), v::positive(), v::notEmpty())->validate($input);
1498 1498
 
16  tests/library/Respect/Validation/Rules/AlnumTest.php
@@ -6,9 +6,9 @@ class AlnumTest extends \PHPUnit_Framework_TestCase
6 6
     /**
7 7
      * @dataProvider providerForValidAlnum
8 8
      */
9  
-    public function testValidAlnumCharsShouldReturnTrue($validAlnum, $aditional)
  9
+    public function testValidAlnumCharsShouldReturnTrue($validAlnum, $additional)
10 10
     {
11  
-        $validator = new Alnum($aditional);
  11
+        $validator = new Alnum($additional);
12 12
         $this->assertTrue($validator->validate($validAlnum));
13 13
         $this->assertTrue($validator->check($validAlnum));
14 14
         $this->assertTrue($validator->assert($validAlnum));
@@ -18,9 +18,9 @@ public function testValidAlnumCharsShouldReturnTrue($validAlnum, $aditional)
18 18
      * @dataProvider providerForInvalidAlnum
19 19
      * @expectedException Respect\Validation\Exceptions\AlnumException
20 20
      */
21  
-    public function testInvalidAlnumCharsShouldThrowAlnumExceptionAndReturnFalse($invalidAlnum, $aditional)
  21
+    public function testInvalidAlnumCharsShouldThrowAlnumExceptionAndReturnFalse($invalidAlnum, $additional)
22 22
     {
23  
-        $validator = new Alnum($aditional);
  23
+        $validator = new Alnum($additional);
24 24
         $this->assertFalse($validator->validate($invalidAlnum));
25 25
         $this->assertFalse($validator->assert($invalidAlnum));
26 26
     }
@@ -29,17 +29,17 @@ public function testInvalidAlnumCharsShouldThrowAlnumExceptionAndReturnFalse($in
29 29
      * @dataProvider providerForInvalidParams
30 30
      * @expectedException Respect\Validation\Exceptions\ComponentException
31 31
      */
32  
-    public function testInvalidConstructorParamsShouldThrowComponentExceptionUponInstantiation($aditional)
  32
+    public function testInvalidConstructorParamsShouldThrowComponentExceptionUponInstantiation($additional)
33 33
     {
34  
-        $validator = new Alnum($aditional);
  34
+        $validator = new Alnum($additional);
35 35
     }
36 36
 
37 37
     /**
38 38
      * @dataProvider providerAdditionalChars
39 39
      */
40  
-    public function testAdditionalCharsShouldBeRespected($aditional, $query)
  40
+    public function testAdditionalCharsShouldBeRespected($additional, $query)
41 41
     {
42  
-        $validator = new Alnum($aditional);
  42
+        $validator = new Alnum($additional);
43 43
         $this->assertTrue($validator->validate($query));
44 44
     }
45 45
 
16  tests/library/Respect/Validation/Rules/AlphaTest.php
@@ -6,9 +6,9 @@ class AlphaTest extends \PHPUnit_Framework_TestCase
6 6
     /**
7 7
      * @dataProvider providerForValidAlpha
8 8
      */
9  
-    public function testValidAlphanumericCharsShouldReturnTrue($validAlpha, $aditional)
  9
+    public function testValidAlphanumericCharsShouldReturnTrue($validAlpha, $additional)
10 10
     {
11  
-        $validator = new Alpha($aditional);
  11
+        $validator = new Alpha($additional);
12 12
         $this->assertTrue($validator->validate($validAlpha));
13 13
         $this->assertTrue($validator->check($validAlpha));
14 14
         $this->assertTrue($validator->assert($validAlpha));
@@ -18,9 +18,9 @@ public function testValidAlphanumericCharsShouldReturnTrue($validAlpha, $adition
18 18
      * @dataProvider providerForInvalidAlpha
19 19
      * @expectedException Respect\Validation\Exceptions\AlphaException
20 20
      */
21  
-    public function testInvalidAlphanumericCharsShouldThrowAlphaException($invalidAlpha, $aditional)
  21
+    public function testInvalidAlphanumericCharsShouldThrowAlphaException($invalidAlpha, $additional)
22 22
     {
23  
-        $validator = new Alpha($aditional);
  23
+        $validator = new Alpha($additional);
24 24
         $this->assertFalse($validator->validate($invalidAlpha));
25 25
         $this->assertFalse($validator->assert($invalidAlpha));
26 26
     }
@@ -29,17 +29,17 @@ public function testInvalidAlphanumericCharsShouldThrowAlphaException($invalidAl
29 29
      * @dataProvider providerForInvalidParams
30 30
      * @expectedException Respect\Validation\Exceptions\ComponentException
31 31
      */
32  
-    public function testInvalidConstructorParamsShouldThrowComponentExeption($aditional)
  32
+    public function testInvalidConstructorParamsShouldThrowComponentException($additional)
33 33
     {
34  
-        $validator = new Alpha($aditional);
  34
+        $validator = new Alpha($additional);
35 35
     }
36 36
 
37 37
     /**
38 38
      * @dataProvider providerAdditionalChars
39 39
      */
40  
-    public function testAdditionalCharsShouldBeRespected($aditional, $query)
  40
+    public function testAdditionalCharsShouldBeRespected($additional, $query)
41 41
     {
42  
-        $validator = new Alpha($aditional);
  42
+        $validator = new Alpha($additional);
43 43
         $this->assertTrue($validator->validate($query));
44 44
     }
45 45
 
4  tests/library/Respect/Validation/Rules/AttributeTest.php
@@ -42,7 +42,7 @@ public function testAbsentAttributeShouldRaiseAttributeException_on_check()
42 42
     }
43 43
 
44 44
     /**
45  
-     * @dataProvider providerForInvalidAtrributeNames
  45
+     * @dataProvider providerForInvalidAttributeNames
46 46
      * @expectedException Respect\Validation\Exceptions\ComponentException
47 47
      */
48 48
     public function testInvalidConstructorArgumentsShouldThrowComponentException($attributeName)
@@ -50,7 +50,7 @@ public function testInvalidConstructorArgumentsShouldThrowComponentException($at
50 50
         $validator = new Attribute($attributeName);
51 51
     }
52 52
 
53  
-    public function providerForInvalidAtrributeNames()
  53
+    public function providerForInvalidAttributeNames()
54 54
     {
55 55
         return array(
56 56
             array(new \stdClass),
4  tests/library/Respect/Validation/Rules/CnhTest.php
@@ -41,7 +41,7 @@ public function testNotIntegerCnh($cnh)
41 41
     }
42 42
 
43 43
     /**
44  
-     * @dataProvider invalidCnhLenghtProvider
  44
+     * @dataProvider invalidCnhLengthProvider
45 45
      * @expectedException Respect\Validation\Exceptions\CnhException
46 46
      */
47 47
     public function testInvalidLengthCnh($cnh)
@@ -141,7 +141,7 @@ public function notIntegerCnhProvider()
141 141
         );
142 142
     }
143 143
 
144  
-    public function invalidCnhLenghtProvider()
  144
+    public function invalidCnhLengthProvider()
145 145
     {
146 146
         return array(
147 147
                array('00265003006461'),
16  tests/library/Respect/Validation/Rules/CntrlTest.php
@@ -6,9 +6,9 @@ class CntrlTest extends \PHPUnit_Framework_TestCase
6 6
     /**
7 7
      * @dataProvider providerForValidCntrl
8 8
      */
9  
-    public function testValidDataWithCntrlShouldReturnTrue($validCntrl, $aditional='')
  9
+    public function testValidDataWithCntrlShouldReturnTrue($validCntrl, $additional='')
10 10
     {
11  
-        $validator = new Cntrl($aditional);
  11
+        $validator = new Cntrl($additional);
12 12
         $this->assertTrue($validator->validate($validCntrl));
13 13
     }
14 14
 
@@ -16,9 +16,9 @@ public function testValidDataWithCntrlShouldReturnTrue($validCntrl, $aditional='
16 16
      * @dataProvider providerForInvalidCntrl
17 17
      * @expectedException Respect\Validation\Exceptions\CntrlException
18 18
      */
19  
-    public function testInvalidCntrlShouldFailAndThrowCntrlException($invalidCntrl, $aditional='')
  19
+    public function testInvalidCntrlShouldFailAndThrowCntrlException($invalidCntrl, $additional='')
20 20
     {
21  
-        $validator = new Cntrl($aditional);
  21
+        $validator = new Cntrl($additional);
22 22
         $this->assertFalse($validator->validate($invalidCntrl));
23 23
         $this->assertFalse($validator->assert($invalidCntrl));
24 24
     }
@@ -27,17 +27,17 @@ public function testInvalidCntrlShouldFailAndThrowCntrlException($invalidCntrl,
27 27
      * @dataProvider providerForInvalidParams
28 28
      * @expectedException Respect\Validation\Exceptions\ComponentException
29 29
      */
30  
-    public function testInvalidConstructorParamsShouldThrowComponentExceptionUponInstantiation($aditional)
  30
+    public function testInvalidConstructorParamsShouldThrowComponentExceptionUponInstantiation($additional)
31 31
     {
32  
-        $validator = new Cntrl($aditional);
  32
+        $validator = new Cntrl($additional);
33 33
     }
34 34
 
35 35
     /**
36 36
      * @dataProvider providerAdditionalChars
37 37
      */
38  
-    public function testAdditionalCharsShouldBeRespected($aditional, $query)
  38
+    public function testAdditionalCharsShouldBeRespected($additional, $query)
39 39
     {
40  
-        $validator = new Cntrl($aditional);
  40
+        $validator = new Cntrl($additional);
41 41
         $this->assertTrue($validator->validate($query));
42 42
     }
43 43
 
16  tests/library/Respect/Validation/Rules/ConsonantTest.php
@@ -6,9 +6,9 @@ class ConsonantTest extends \PHPUnit_Framework_TestCase
6 6
     /**
7 7
      * @dataProvider providerForValidConsonants
8 8
      */
9  
-    public function testValidDataWithConsonantsShouldReturnTrue($validConsonants, $aditional='')
  9
+    public function testValidDataWithConsonantsShouldReturnTrue($validConsonants, $additional='')
10 10
     {
11  
-        $validator = new Consonant($aditional);
  11
+        $validator = new Consonant($additional);
12 12
         $this->assertTrue($validator->validate($validConsonants));
13 13
     }
14 14
 
@@ -16,9 +16,9 @@ public function testValidDataWithConsonantsShouldReturnTrue($validConsonants, $a
16 16
      * @dataProvider providerForInvalidConsonants
17 17
      * @expectedException Respect\Validation\Exceptions\ConsonantException
18 18
      */
19  
-    public function testInvalidConsonantsShouldFailAndThrowConsonantException($invalidConsonants, $aditional='')
  19
+    public function testInvalidConsonantsShouldFailAndThrowConsonantException($invalidConsonants, $additional='')
20 20
     {
21  
-        $validator = new Consonant($aditional);
  21
+        $validator = new Consonant($additional);
22 22
         $this->assertFalse($validator->validate($invalidConsonants));
23 23
         $this->assertFalse($validator->assert($invalidConsonants));
24 24
     }
@@ -27,17 +27,17 @@ public function testInvalidConsonantsShouldFailAndThrowConsonantException($inval
27 27
      * @dataProvider providerForInvalidParams
28 28
      * @expectedException Respect\Validation\Exceptions\ComponentException
29 29
      */
30  
-    public function testInvalidConstructorParamsShouldThrowComponentExceptionUponInstantiation($aditional)
  30
+    public function testInvalidConstructorParamsShouldThrowComponentExceptionUponInstantiation($additional)
31 31
     {
32  
-        $validator = new Consonant($aditional);
  32
+        $validator = new Consonant($additional);
33 33
     }
34 34
 
35 35
     /**
36 36
      * @dataProvider providerAdditionalChars
37 37
      */
38  
-    public function testAdditionalCharsShouldBeRespected($aditional, $query)
  38
+    public function testAdditionalCharsShouldBeRespected($additional, $query)
39 39
     {
40  
-        $validator = new Consonant($aditional);
  40
+        $validator = new Consonant($additional);
41 41
         $this->assertTrue($validator->validate($query));
42 42
     }
43 43
 
2  tests/library/Respect/Validation/Rules/ContainsTest.php
@@ -18,7 +18,7 @@ public function testStringsContainingExpectedValueShouldPass($start, $input)
18 18
      * @dataProvider providerForNotContains
19 19
      * @expectedException Respect\Validation\Exceptions\ContainsException
20 20
      */
21  
-    public function testStringsNotContainsExpectedValueShoudNotPass($start, $input, $identical=false)
  21
+    public function testStringsNotContainsExpectedValueShouldNotPass($start, $input, $identical=false)
22 22
     {
23 23
         $v = new Contains($start, $identical);
24 24
         $this->assertFalse($v->__invoke($input));
2  tests/library/Respect/Validation/Rules/DateTest.php
@@ -33,7 +33,7 @@ public function testInvalidDateShouldFail()
33 33
     {
34 34
         $this->assertFalse($this->dateValidator->__invoke('aids'));
35 35
     }
36  
-    public function testInvalidDateShouldFail_on_invalid_convertions()
  36
+    public function testInvalidDateShouldFail_on_invalid_conversions()
37 37
     {
38 38
         $this->dateValidator->format = 'Y-m-d';
39 39
         $this->assertFalse($this->dateValidator->__invoke('2009-12-00'));
16  tests/library/Respect/Validation/Rules/DigitTest.php
@@ -6,9 +6,9 @@ class DigitTest extends \PHPUnit_Framework_TestCase
6 6
     /**
7 7
      * @dataProvider providerForValidDigits
8 8
      */
9  
-    public function testValidDataWithDigitsShouldReturnTrue($validDigits, $aditional='')
  9
+    public function testValidDataWithDigitsShouldReturnTrue($validDigits, $additional='')
10 10
     {
11  
-        $validator = new Digit($aditional);
  11
+        $validator = new Digit($additional);
12 12
         $this->assertTrue($validator->validate($validDigits));
13 13
     }
14 14
 
@@ -16,9 +16,9 @@ public function testValidDataWithDigitsShouldReturnTrue($validDigits, $aditional
16 16
      * @dataProvider providerForInvalidDigits
17 17
      * @expectedException Respect\Validation\Exceptions\DigitException
18 18
      */
19  
-    public function testInvalidDigitsShouldFailAndThrowDigitException($invalidDigits, $aditional='')
  19
+    public function testInvalidDigitsShouldFailAndThrowDigitException($invalidDigits, $additional='')
20 20
     {
21  
-        $validator = new Digit($aditional);
  21
+        $validator = new Digit($additional);
22 22
         $this->assertFalse($validator->validate($invalidDigits));
23 23
         $this->assertFalse($validator->assert($invalidDigits));
24 24
     }
@@ -27,17 +27,17 @@ public function testInvalidDigitsShouldFailAndThrowDigitException($invalidDigits
27 27
      * @dataProvider providerForInvalidParams
28 28
      * @expectedException Respect\Validation\Exceptions\ComponentException
29 29
      */
30  
-    public function testInvalidConstructorParamsShouldThrowComponentExceptionUponInstantiation($aditional)
  30
+    public function testInvalidConstructorParamsShouldThrowComponentExceptionUponInstantiation($additional)
31 31
     {
32  
-        $validator = new Digit($aditional);
  32
+        $validator = new Digit($additional);
33 33
     }
34 34
 
35 35
     /**
36 36
      * @dataProvider providerAdditionalChars
37 37
      */
38  
-    public function testAdditionalCharsShouldBeRespected($aditional, $query)
  38
+    public function testAdditionalCharsShouldBeRespected($additional, $query)
39 39
     {
40  
-        $validator = new Digit($aditional);
  40
+        $validator = new Digit($additional);
41 41
         $this->assertTrue($validator->validate($query));
42 42
     }
43 43
 
2  tests/library/Respect/Validation/Rules/EndsWithTest.php
@@ -18,7 +18,7 @@ public function testStringsEndingWithExpectedValueShouldPass($start, $input)
18 18
      * @dataProvider providerForNotEndsWith
19 19
      * @expectedException Respect\Validation\Exceptions\EndsWithException
20 20
      */
21  
-    public function testStringsNotEndingWithExpectedValueShoudNotPass($start, $input, $caseSensitive=false)
  21
+    public function testStringsNotEndingWithExpectedValueShouldNotPass($start, $input, $caseSensitive=false)
22 22
     {
23 23
         $v = new EndsWith($start, $caseSensitive);
24 24
         $this->assertFalse($v->__invoke($input));
2  tests/library/Respect/Validation/Rules/EqualsTest.php
@@ -18,7 +18,7 @@ public function testStringsContainingExpectedValueShouldPass($start, $input)
18 18
      * @dataProvider providerForNotEquals
19 19
      * @expectedException Respect\Validation\Exceptions\EqualsException
20 20
      */
21  
-    public function testStringsNotEqualsExpectedValueShoudNotPass($start, $input, $identical=false)
  21
+    public function testStringsNotEqualsExpectedValueShouldNotPass($start, $input, $identical=false)
22 22
     {
23 23
         $v = new Equals($start, $identical);
24 24
         $this->assertFalse($v->__invoke($input));
16  tests/library/Respect/Validation/Rules/GraphTest.php
@@ -6,9 +6,9 @@ class GraphTest extends \PHPUnit_Framework_TestCase
6 6
     /**
7 7
      * @dataProvider providerForValidGraph
8 8
      */
9  
-    public function testValidDataWithGraphCharsShouldReturnTrue($validGraph, $aditional='')
  9
+    public function testValidDataWithGraphCharsShouldReturnTrue($validGraph, $additional='')
10 10
     {
11  
-        $validator = new Graph($aditional);
  11
+        $validator = new Graph($additional);
12 12
         $this->assertTrue($validator->validate($validGraph));
13 13
     }
14 14
 
@@ -16,9 +16,9 @@ public function testValidDataWithGraphCharsShouldReturnTrue($validGraph, $aditio
16 16
      * @dataProvider providerForInvalidGraph
17 17
      * @expectedException Respect\Validation\Exceptions\GraphException
18 18
      */
19  
-    public function testInvalidGraphShouldFailAndThrowGraphException($invalidGraph, $aditional='')
  19
+    public function testInvalidGraphShouldFailAndThrowGraphException($invalidGraph, $additional='')
20 20
     {
21  
-        $validator = new Graph($aditional);
  21
+        $validator = new Graph($additional);
22 22
         $this->assertFalse($validator->validate($invalidGraph));
23 23
         $this->assertFalse($validator->assert($invalidGraph));
24 24
     }
@@ -27,17 +27,17 @@ public function testInvalidGraphShouldFailAndThrowGraphException($invalidGraph,
27 27
      * @dataProvider providerForInvalidParams
28 28
      * @expectedException Respect\Validation\Exceptions\ComponentException
29 29
      */
30  
-    public function testInvalidConstructorParamsShouldThrowComponentExceptionUponInstantiation($aditional)
  30
+    public function testInvalidConstructorParamsShouldThrowComponentExceptionUponInstantiation($additional)
31 31
     {
32  
-        $validator = new Graph($aditional);
  32
+        $validator = new Graph($additional);
33 33
     }
34 34
 
35 35
     /**
36 36
      * @dataProvider providerAdditionalChars
37 37
      */
38  
-    public function testAdditionalCharsShouldBeRespected($aditional, $query)
  38
+    public function testAdditionalCharsShouldBeRespected($additional, $query)
39 39
     {
40  
-        $validator = new Graph($aditional);
  40
+        $validator = new Graph($additional);
41 41
         $this->assertTrue($validator->validate($query));
42 42
     }
43 43
 
14  tests/library/Respect/Validation/Rules/LengthTest.php
@@ -4,9 +4,9 @@
4 4
 class LengthTest extends \PHPUnit_Framework_TestCase
5 5
 {
6 6
     /**
7  
-     * @dataProvider providerForValidLenght
  7
+     * @dataProvider providerForValidLength
8 8
      */
9  
-    public function testLenghtInsideBoundsShouldReturnTrue($string, $min, $max)
  9
+    public function testLengthInsideBoundsShouldReturnTrue($string, $min, $max)
10 10
     {
11 11
         $validator = new Length($min, $max);
12 12
         $this->assertTrue($validator->__invoke($string));
@@ -15,7 +15,7 @@ public function testLenghtInsideBoundsShouldReturnTrue($string, $min, $max)
15 15
     }
16 16
 
17 17
     /**
18  
-     * @dataProvider providerForInvalidLenghtInclusive
  18
+     * @dataProvider providerForInvalidLengthInclusive
19 19
      * @expectedException Respect\Validation\Exceptions\LengthException
20 20
      */
21 21
     public function testLengthOutsideBoundsShouldThrowLengthException($string, $min, $max)
@@ -26,7 +26,7 @@ public function testLengthOutsideBoundsShouldThrowLengthException($string, $min,
26 26
     }
27 27
 
28 28
     /**
29  
-     * @dataProvider providerForInvalidLenght
  29
+     * @dataProvider providerForInvalidLength
30 30
      * @expectedException Respect\Validation\Exceptions\LengthException
31 31
      */
32 32
     public function testLengthOutsideValidBoundsShouldThrowLengthException($string, $min, $max)
@@ -47,7 +47,7 @@ public function testInvalidConstructorParametersShouldThrowComponentExceptionUpo
47 47
         $this->assertFalse($validator->assert($string));
48 48
     }
49 49
 
50  
-    public function providerForValidLenght()
  50
+    public function providerForValidLength()
51 51
     {
52 52
         return array(
53 53
             array('', 1, 15),
@@ -60,7 +60,7 @@ public function providerForValidLenght()
60 60
         );
61 61
     }
62 62
 
63  
-    public function providerForInvalidLenghtInclusive()
  63
+    public function providerForInvalidLengthInclusive()
64 64
     {
65 65
         return array(
66 66
             array('alganet', 1, 7),
@@ -70,7 +70,7 @@ public function providerForInvalidLenghtInclusive()
70 70
         );
71 71
     }
72 72
 
73  
-    public function providerForInvalidLenght()
  73
+    public function providerForInvalidLength()
74 74
     {
75 75
         return array(
76 76
             array('alganet', 1, 3),
6  tests/library/Respect/Validation/Rules/OneOfTest.php
@@ -20,7 +20,7 @@ public function testValid()
20 20
         $this->assertTrue($o->check('any'));
21 21
     }
22 22
 
23  
-    public function testShorcutValid()
  23
+    public function testShortcutValid()
24 24
     {
25 25
         $valid1 = new Callback(function() {
26 26
             return false;
@@ -61,7 +61,7 @@ public function testInvalid()
61 61
     /**
62 62
      * @expectedException Respect\Validation\Exceptions\OneOfException
63 63
      */
64  
-    public function testShorcutInvalid()
  64
+    public function testShortcutInvalid()
65 65
     {
66 66
         $valid1 = new Callback(function() {
67 67
             return false;
@@ -90,7 +90,7 @@ public function testInvalidCheck()
90 90
     /**
91 91
      * @expectedException Respect\Validation\Exceptions\XdigitException
92 92
      */
93  
-    public function testShorcutInvalidCheck()
  93
+    public function testShortcutInvalidCheck()
94 94
     {
95 95
         $xdigits = new Xdigit;
96 96
         $o = $xdigits->addOr(new Alnum);
16  tests/library/Respect/Validation/Rules/PrntTest.php
@@ -6,9 +6,9 @@ class PrntTest extends \PHPUnit_Framework_TestCase
6 6
     /**
7 7
      * @dataProvider providerForValidPrint
8 8
      */
9  
-    public function testValidDataWithPrintCharsShouldReturnTrue($validPrint, $aditional='')
  9
+    public function testValidDataWithPrintCharsShouldReturnTrue($validPrint, $additional='')
10 10
     {
11  
-        $validator = new Prnt($aditional);
  11
+        $validator = new Prnt($additional);
12 12
         $this->assertTrue($validator->validate($validPrint));
13 13
     }
14 14
 
@@ -16,9 +16,9 @@ public function testValidDataWithPrintCharsShouldReturnTrue($validPrint, $aditio
16 16
      * @dataProvider providerForInvalidPrint
17 17
      * @expectedException Respect\Validation\Exceptions\PrntException
18 18
      */
19  
-    public function testInvalidPrintShouldFailAndThrowPrntException($invalidPrint, $aditional='')
  19
+    public function testInvalidPrintShouldFailAndThrowPrntException($invalidPrint, $additional='')
20 20
     {
21  
-        $validator = new Prnt($aditional);
  21
+        $validator = new Prnt($additional);
22 22
         $this->assertFalse($validator->validate($invalidPrint));
23 23
         $this->assertFalse($validator->assert($invalidPrint));
24 24
     }
@@ -27,17 +27,17 @@ public function testInvalidPrintShouldFailAndThrowPrntException($invalidPrint, $
27 27
      * @dataProvider providerForInvalidParams
28 28
      * @expectedException Respect\Validation\Exceptions\ComponentException
29 29
      */
30  
-    public function testInvalidConstructorParamsShouldThrowComponentExceptionUponInstantiation($aditional)
  30
+    public function testInvalidConstructorParamsShouldThrowComponentExceptionUponInstantiation($additional)
31 31
     {
32  
-        $validator = new Prnt($aditional);
  32
+        $validator = new Prnt($additional);
33 33
     }
34 34
 
35 35
     /**
36 36
      * @dataProvider providerAdditionalChars
37 37
      */
38  
-    public function testAdditionalCharsShouldBeRespected($aditional, $query)
  38
+    public function testAdditionalCharsShouldBeRespected($additional, $query)
39 39
     {
40  
-        $validator = new Prnt($aditional);
  40
+        $validator = new Prnt($additional);
41 41
         $this->assertTrue($validator->validate($query));
42 42
     }
43 43
 
16  tests/library/Respect/Validation/Rules/PunctTest.php
@@ -6,9 +6,9 @@ class PunctTest extends \PHPUnit_Framework_TestCase
6 6
     /**
7 7
      * @dataProvider providerForValidPunct
8 8
      */
9  
-    public function testValidDataWithPunctShouldReturnTrue($validPunct, $aditional='')
  9
+    public function testValidDataWithPunctShouldReturnTrue($validPunct, $additional='')
10 10
     {
11  
-        $validator = new Punct($aditional);
  11
+        $validator = new Punct($additional);
12 12
         $this->assertTrue($validator->validate($validPunct));
13 13
     }
14 14
 
@@ -16,9 +16,9 @@ public function testValidDataWithPunctShouldReturnTrue($validPunct, $aditional='
16 16
      * @dataProvider providerForInvalidPunct
17 17
      * @expectedException Respect\Validation\Exceptions\PunctException
18 18
      */
19  
-    public function testInvalidPunctShouldFailAndThrowPunctException($invalidPunct, $aditional='')
  19
+    public function testInvalidPunctShouldFailAndThrowPunctException($invalidPunct, $additional='')
20 20
     {
21  
-        $validator = new Punct($aditional);
  21
+        $validator = new Punct($additional);
22 22
         $this->assertFalse($validator->validate($invalidPunct));
23 23
         $this->assertFalse($validator->assert($invalidPunct));
24 24
     }
@@ -27,17 +27,17 @@ public function testInvalidPunctShouldFailAndThrowPunctException($invalidPunct,
27 27
      * @dataProvider providerForInvalidParams
28 28
      * @expectedException Respect\Validation\Exceptions\ComponentException
29 29
      */
30  
-    public function testInvalidConstructorParamsShouldThrowComponentExceptionUponInstantiation($aditional)
  30
+    public function testInvalidConstructorParamsShouldThrowComponentExceptionUponInstantiation($additional)
31 31
     {
32  
-        $validator = new Punct($aditional);
  32
+        $validator = new Punct($additional);
33 33
     }
34 34
 
35 35
     /**
36 36
      * @dataProvider providerAdditionalChars
37 37
      */
38  
-    public function testAdditionalCharsShouldBeRespected($aditional, $query)
  38
+    public function testAdditionalCharsShouldBeRespected($additional, $query)
39 39
     {
40  
-        $validator = new Punct($aditional);
  40
+        $validator = new Punct($additional);
41 41
         $this->assertTrue($validator->validate($query));
42 42
     }
43 43
 
16  tests/library/Respect/Validation/Rules/SpaceTest.php
@@ -6,9 +6,9 @@ class SpaceTest extends \PHPUnit_Framework_TestCase
6 6
     /**
7 7
      * @dataProvider providerForValidSpace
8 8
      */
9  
-    public function testValidDataWithSpaceShouldReturnTrue($validSpace, $aditional='')
  9
+    public function testValidDataWithSpaceShouldReturnTrue($validSpace, $additional='')
10 10
     {
11  
-        $validator = new Space($aditional);
  11
+        $validator = new Space($additional);
12 12
         $this->assertTrue($validator->validate($validSpace));
13 13
     }
14 14
 
@@ -16,9 +16,9 @@ public function testValidDataWithSpaceShouldReturnTrue($validSpace, $aditional='
16 16
      * @dataProvider providerForInvalidSpace
17 17
      * @expectedException Respect\Validation\Exceptions\SpaceException
18 18
      */
19  
-    public function testInvalidSpaceShouldFailAndThrowSpaceException($invalidSpace, $aditional='')
  19
+    public function testInvalidSpaceShouldFailAndThrowSpaceException($invalidSpace, $additional='')
20 20
     {
21  
-        $validator = new Space($aditional);
  21
+        $validator = new Space($additional);
22 22
         $this->assertFalse($validator->validate($invalidSpace));
23 23
         $this->assertFalse($validator->assert($invalidSpace));
24 24
     }
@@ -27,17 +27,17 @@ public function testInvalidSpaceShouldFailAndThrowSpaceException($invalidSpace,
27 27
      * @dataProvider providerForInvalidParams
28 28
      * @expectedException Respect\Validation\Exceptions\ComponentException
29 29
      */
30  
-    public function testInvalidConstructorParamsShouldThrowComponentExceptionUponInstantiation($aditional)
  30
+    public function testInvalidConstructorParamsShouldThrowComponentExceptionUponInstantiation($additional)
31 31
     {
32  
-        $validator = new Space($aditional);
  32
+        $validator = new Space($additional);
33 33
     }
34 34
 
35 35
     /**
36 36
      * @dataProvider providerAdditionalChars
37 37
      */
38  
-    public function testAdditionalCharsShouldBeRespected($aditional, $query)
  38
+    public function testAdditionalCharsShouldBeRespected($additional, $query)
39 39
     {
40  
-        $validator = new Space($aditional);
  40
+        $validator = new Space($additional);
41 41
         $this->assertTrue($validator->validate($query));
42 42
     }
43 43
 
16  tests/library/Respect/Validation/Rules/VowelTest.php
@@ -6,9 +6,9 @@ class VowelTest extends \PHPUnit_Framework_TestCase
6 6
     /**
7 7
      * @dataProvider providerForValidVowels
8 8
      */
9  
-    public function testValidDataWithVowelsShouldReturnTrue($validVowels, $aditional='')
  9
+    public function testValidDataWithVowelsShouldReturnTrue($validVowels, $additional='')
10 10
     {
11  
-        $validator = new Vowel($aditional);
  11
+        $validator = new Vowel($additional);
12 12
         $this->assertTrue($validator->validate($validVowels));
13 13
     }
14 14
 
@@ -16,9 +16,9 @@ public function testValidDataWithVowelsShouldReturnTrue($validVowels, $aditional
16 16
      * @dataProvider providerForInvalidVowels
17 17
      * @expectedException Respect\Validation\Exceptions\VowelException
18 18
      */
19  
-    public function testInvalidVowelsShouldFailAndThrowVowelException($invalidVowels, $aditional='')
  19
+    public function testInvalidVowelsShouldFailAndThrowVowelException($invalidVowels, $additional='')
20 20
     {
21  
-        $validator = new Vowel($aditional);
  21
+        $validator = new Vowel($additional);
22 22
         $this->assertFalse($validator->validate($invalidVowels));
23 23
         $this->assertFalse($validator->assert($invalidVowels));
24 24
     }
@@ -27,17 +27,17 @@ public function testInvalidVowelsShouldFailAndThrowVowelException($invalidVowels
27 27
      * @dataProvider providerForInvalidParams
28 28
      * @expectedException Respect\Validation\Exceptions\ComponentException
29 29
      */
30  
-    public function testInvalidConstructorParamsShouldThrowComponentExceptionUponInstantiation($aditional)
  30
+    public function testInvalidConstructorParamsShouldThrowComponentExceptionUponInstantiation($additional)
31 31
     {
32  
-        $validator = new Vowel($aditional);
  32
+        $validator = new Vowel($additional);
33 33
     }
34 34
 
35 35
     /**
36 36
      * @dataProvider providerAdditionalChars
37 37
      */
38  
-    public function testAdditionalCharsShouldBeRespected($aditional, $query)
  38
+    public function testAdditionalCharsShouldBeRespected($additional, $query)
39 39
     {
40  
-        $validator = new Vowel($aditional);
  40
+        $validator = new Vowel($additional);
41 41
         $this->assertTrue($validator->validate($query));
42 42
     }
43 43
 
4  tests/library/Respect/Validation/Rules/XdigitTest.php
@@ -33,9 +33,9 @@ public function testInvalidHexadecimalDigitsShouldThrowXdigitException($input)
33 33
     /**
34 34
      * @dataProvider providerAdditionalChars
35 35
      */
36  
-    public function testAdditionalCharsShouldBeRespected($aditional, $query)
  36
+    public function testAdditionalCharsShouldBeRespected($additional, $query)
37 37
     {
38  
-        $validator = new Xdigit($aditional);
  38
+        $validator = new Xdigit($additional);
39 39
         $this->assertTrue($validator->validate($query));
40 40
     }
41 41
 

0 notes on commit 2776a40

Please sign in to comment.
Something went wrong with that request. Please try again.