Browse files

Fixed typos

  • Loading branch information...
1 parent 9be0ee8 commit 2776a405cbd30cc4987fa8c40f8d76cfe655d549 @pborreli committed Feb 25, 2013
View
20 README.md
@@ -33,7 +33,7 @@ The Hello World validator is something like this:
### Chained Validation
It is possible to use validators in a chain. Sample below validates a string
-containing numbers and letters, no whitspace and length between 1 and 15.
+containing numbers and letters, no whitespace and length between 1 and 15.
$usernameValidator = v::alnum()->noWhitespace()->length(1,15);
$usernameValidator->validate('alganet'); //true
@@ -62,7 +62,7 @@ validated object as the first node in the chain.
### Input optional
All validators treat input as optional and will accept empty string input as valid,
-unless otherwies stated in the documentation.
+unless otherwise stated in the documentation.
We us the `v:notEmpty()` validator prefixed to disallow empty input and effectively
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
### Informative Exceptions
-When something goes wrong, Validation can tell you exacty what's going on. For this,
+When something goes wrong, Validation can tell you exactly what's going on. For this,
we use the `assert()` method instead of `validate()`:
try {
@@ -277,7 +277,7 @@ Reference
### Regional
* v::tld()
- * v::coutryCode()
+ * v::countryCode()
### Files
@@ -913,7 +913,7 @@ See also:
Validates if the input is an instance of the given class or interface.
v::instance('DateTime')->validate(new DateTime); //true
- v::instance('Traversable')->validate(new ArrayObjet); //true
+ v::instance('Traversable')->validate(new ArrayObject); //true
Message template for this validator includes `{{instanceName}}`.
@@ -1165,7 +1165,7 @@ Negates any rule.
v::not(v::ip())->validate('foo'); //true
-using a shorcut
+using a shortcut
v::ip()->not()->validate('foo'); //true
@@ -1175,7 +1175,7 @@ You can negate complex, grouped or chained validators as well:
v::not(v::int()->positive())->validate(-1.5); //true
-using a shorcut
+using a shortcut
v::int()->positive()->not()->validate(-1.5); //true
@@ -1188,7 +1188,7 @@ See also:
#### v::notEmpty()
Validates if the given input is not empty or in other words is input mandatory and
-roequired. This function also takes whitespace into account, use `noWhitespace()`
+required. This function also takes whitespace into account, use `noWhitespace()`
if no spaces or linebreaks and other whitespace anywhere in the input is desired.
v::string()->notEmpty()->validate(''); //false
@@ -1402,7 +1402,7 @@ For arrays:
v::startsWith('lorem')->validate(array('lorem', 'ipsum')); //true
-`true` may be passed as a parameter to indicate idetical comparison
+`true` may be passed as a parameter to indicate identical comparison
instead of equal.
Message template for this validator includes `{{startValue}}`.
@@ -1492,7 +1492,7 @@ See also:
A ternary validator that accepts three parameters.
When the $if validates, returns validation for $then.
-When the $if doesnt' validate, returns validation for $else.
+When the $if doesn't validate, returns validation for $else.
v::when(v::int(), v::positive(), v::notEmpty())->validate($input);
View
16 tests/library/Respect/Validation/Rules/AlnumTest.php
@@ -6,9 +6,9 @@ class AlnumTest extends \PHPUnit_Framework_TestCase
/**
* @dataProvider providerForValidAlnum
*/
- public function testValidAlnumCharsShouldReturnTrue($validAlnum, $aditional)
+ public function testValidAlnumCharsShouldReturnTrue($validAlnum, $additional)
{
- $validator = new Alnum($aditional);
+ $validator = new Alnum($additional);
$this->assertTrue($validator->validate($validAlnum));
$this->assertTrue($validator->check($validAlnum));
$this->assertTrue($validator->assert($validAlnum));
@@ -18,9 +18,9 @@ public function testValidAlnumCharsShouldReturnTrue($validAlnum, $aditional)
* @dataProvider providerForInvalidAlnum
* @expectedException Respect\Validation\Exceptions\AlnumException
*/
- public function testInvalidAlnumCharsShouldThrowAlnumExceptionAndReturnFalse($invalidAlnum, $aditional)
+ public function testInvalidAlnumCharsShouldThrowAlnumExceptionAndReturnFalse($invalidAlnum, $additional)
{
- $validator = new Alnum($aditional);
+ $validator = new Alnum($additional);
$this->assertFalse($validator->validate($invalidAlnum));
$this->assertFalse($validator->assert($invalidAlnum));
}
@@ -29,17 +29,17 @@ public function testInvalidAlnumCharsShouldThrowAlnumExceptionAndReturnFalse($in
* @dataProvider providerForInvalidParams
* @expectedException Respect\Validation\Exceptions\ComponentException
*/
- public function testInvalidConstructorParamsShouldThrowComponentExceptionUponInstantiation($aditional)
+ public function testInvalidConstructorParamsShouldThrowComponentExceptionUponInstantiation($additional)
{
- $validator = new Alnum($aditional);
+ $validator = new Alnum($additional);
}
/**
* @dataProvider providerAdditionalChars
*/
- public function testAdditionalCharsShouldBeRespected($aditional, $query)
+ public function testAdditionalCharsShouldBeRespected($additional, $query)
{
- $validator = new Alnum($aditional);
+ $validator = new Alnum($additional);
$this->assertTrue($validator->validate($query));
}
View
16 tests/library/Respect/Validation/Rules/AlphaTest.php
@@ -6,9 +6,9 @@ class AlphaTest extends \PHPUnit_Framework_TestCase
/**
* @dataProvider providerForValidAlpha
*/
- public function testValidAlphanumericCharsShouldReturnTrue($validAlpha, $aditional)
+ public function testValidAlphanumericCharsShouldReturnTrue($validAlpha, $additional)
{
- $validator = new Alpha($aditional);
+ $validator = new Alpha($additional);
$this->assertTrue($validator->validate($validAlpha));
$this->assertTrue($validator->check($validAlpha));
$this->assertTrue($validator->assert($validAlpha));
@@ -18,9 +18,9 @@ public function testValidAlphanumericCharsShouldReturnTrue($validAlpha, $adition
* @dataProvider providerForInvalidAlpha
* @expectedException Respect\Validation\Exceptions\AlphaException
*/
- public function testInvalidAlphanumericCharsShouldThrowAlphaException($invalidAlpha, $aditional)
+ public function testInvalidAlphanumericCharsShouldThrowAlphaException($invalidAlpha, $additional)
{
- $validator = new Alpha($aditional);
+ $validator = new Alpha($additional);
$this->assertFalse($validator->validate($invalidAlpha));
$this->assertFalse($validator->assert($invalidAlpha));
}
@@ -29,17 +29,17 @@ public function testInvalidAlphanumericCharsShouldThrowAlphaException($invalidAl
* @dataProvider providerForInvalidParams
* @expectedException Respect\Validation\Exceptions\ComponentException
*/
- public function testInvalidConstructorParamsShouldThrowComponentExeption($aditional)
+ public function testInvalidConstructorParamsShouldThrowComponentException($additional)
{
- $validator = new Alpha($aditional);
+ $validator = new Alpha($additional);
}
/**
* @dataProvider providerAdditionalChars
*/
- public function testAdditionalCharsShouldBeRespected($aditional, $query)
+ public function testAdditionalCharsShouldBeRespected($additional, $query)
{
- $validator = new Alpha($aditional);
+ $validator = new Alpha($additional);
$this->assertTrue($validator->validate($query));
}
View
4 tests/library/Respect/Validation/Rules/AttributeTest.php
@@ -42,15 +42,15 @@ public function testAbsentAttributeShouldRaiseAttributeException_on_check()
}
/**
- * @dataProvider providerForInvalidAtrributeNames
+ * @dataProvider providerForInvalidAttributeNames
* @expectedException Respect\Validation\Exceptions\ComponentException
*/
public function testInvalidConstructorArgumentsShouldThrowComponentException($attributeName)
{
$validator = new Attribute($attributeName);
}
- public function providerForInvalidAtrributeNames()
+ public function providerForInvalidAttributeNames()
{
return array(
array(new \stdClass),
View
4 tests/library/Respect/Validation/Rules/CnhTest.php
@@ -41,7 +41,7 @@ public function testNotIntegerCnh($cnh)
}
/**
- * @dataProvider invalidCnhLenghtProvider
+ * @dataProvider invalidCnhLengthProvider
* @expectedException Respect\Validation\Exceptions\CnhException
*/
public function testInvalidLengthCnh($cnh)
@@ -141,7 +141,7 @@ public function notIntegerCnhProvider()
);
}
- public function invalidCnhLenghtProvider()
+ public function invalidCnhLengthProvider()
{
return array(
array('00265003006461'),
View
16 tests/library/Respect/Validation/Rules/CntrlTest.php
@@ -6,19 +6,19 @@ class CntrlTest extends \PHPUnit_Framework_TestCase
/**
* @dataProvider providerForValidCntrl
*/
- public function testValidDataWithCntrlShouldReturnTrue($validCntrl, $aditional='')
+ public function testValidDataWithCntrlShouldReturnTrue($validCntrl, $additional='')
{
- $validator = new Cntrl($aditional);
+ $validator = new Cntrl($additional);
$this->assertTrue($validator->validate($validCntrl));
}
/**
* @dataProvider providerForInvalidCntrl
* @expectedException Respect\Validation\Exceptions\CntrlException
*/
- public function testInvalidCntrlShouldFailAndThrowCntrlException($invalidCntrl, $aditional='')
+ public function testInvalidCntrlShouldFailAndThrowCntrlException($invalidCntrl, $additional='')
{
- $validator = new Cntrl($aditional);
+ $validator = new Cntrl($additional);
$this->assertFalse($validator->validate($invalidCntrl));
$this->assertFalse($validator->assert($invalidCntrl));
}
@@ -27,17 +27,17 @@ public function testInvalidCntrlShouldFailAndThrowCntrlException($invalidCntrl,
* @dataProvider providerForInvalidParams
* @expectedException Respect\Validation\Exceptions\ComponentException
*/
- public function testInvalidConstructorParamsShouldThrowComponentExceptionUponInstantiation($aditional)
+ public function testInvalidConstructorParamsShouldThrowComponentExceptionUponInstantiation($additional)
{
- $validator = new Cntrl($aditional);
+ $validator = new Cntrl($additional);
}
/**
* @dataProvider providerAdditionalChars
*/
- public function testAdditionalCharsShouldBeRespected($aditional, $query)
+ public function testAdditionalCharsShouldBeRespected($additional, $query)
{
- $validator = new Cntrl($aditional);
+ $validator = new Cntrl($additional);
$this->assertTrue($validator->validate($query));
}
View
16 tests/library/Respect/Validation/Rules/ConsonantTest.php
@@ -6,19 +6,19 @@ class ConsonantTest extends \PHPUnit_Framework_TestCase
/**
* @dataProvider providerForValidConsonants
*/
- public function testValidDataWithConsonantsShouldReturnTrue($validConsonants, $aditional='')
+ public function testValidDataWithConsonantsShouldReturnTrue($validConsonants, $additional='')
{
- $validator = new Consonant($aditional);
+ $validator = new Consonant($additional);
$this->assertTrue($validator->validate($validConsonants));
}
/**
* @dataProvider providerForInvalidConsonants
* @expectedException Respect\Validation\Exceptions\ConsonantException
*/
- public function testInvalidConsonantsShouldFailAndThrowConsonantException($invalidConsonants, $aditional='')
+ public function testInvalidConsonantsShouldFailAndThrowConsonantException($invalidConsonants, $additional='')
{
- $validator = new Consonant($aditional);
+ $validator = new Consonant($additional);
$this->assertFalse($validator->validate($invalidConsonants));
$this->assertFalse($validator->assert($invalidConsonants));
}
@@ -27,17 +27,17 @@ public function testInvalidConsonantsShouldFailAndThrowConsonantException($inval
* @dataProvider providerForInvalidParams
* @expectedException Respect\Validation\Exceptions\ComponentException
*/
- public function testInvalidConstructorParamsShouldThrowComponentExceptionUponInstantiation($aditional)
+ public function testInvalidConstructorParamsShouldThrowComponentExceptionUponInstantiation($additional)
{
- $validator = new Consonant($aditional);
+ $validator = new Consonant($additional);
}
/**
* @dataProvider providerAdditionalChars
*/
- public function testAdditionalCharsShouldBeRespected($aditional, $query)
+ public function testAdditionalCharsShouldBeRespected($additional, $query)
{
- $validator = new Consonant($aditional);
+ $validator = new Consonant($additional);
$this->assertTrue($validator->validate($query));
}
View
2 tests/library/Respect/Validation/Rules/ContainsTest.php
@@ -18,7 +18,7 @@ public function testStringsContainingExpectedValueShouldPass($start, $input)
* @dataProvider providerForNotContains
* @expectedException Respect\Validation\Exceptions\ContainsException
*/
- public function testStringsNotContainsExpectedValueShoudNotPass($start, $input, $identical=false)
+ public function testStringsNotContainsExpectedValueShouldNotPass($start, $input, $identical=false)
{
$v = new Contains($start, $identical);
$this->assertFalse($v->__invoke($input));
View
2 tests/library/Respect/Validation/Rules/DateTest.php
@@ -33,7 +33,7 @@ public function testInvalidDateShouldFail()
{
$this->assertFalse($this->dateValidator->__invoke('aids'));
}
- public function testInvalidDateShouldFail_on_invalid_convertions()
+ public function testInvalidDateShouldFail_on_invalid_conversions()
{
$this->dateValidator->format = 'Y-m-d';
$this->assertFalse($this->dateValidator->__invoke('2009-12-00'));
View
16 tests/library/Respect/Validation/Rules/DigitTest.php
@@ -6,19 +6,19 @@ class DigitTest extends \PHPUnit_Framework_TestCase
/**
* @dataProvider providerForValidDigits
*/
- public function testValidDataWithDigitsShouldReturnTrue($validDigits, $aditional='')
+ public function testValidDataWithDigitsShouldReturnTrue($validDigits, $additional='')
{
- $validator = new Digit($aditional);
+ $validator = new Digit($additional);
$this->assertTrue($validator->validate($validDigits));
}
/**
* @dataProvider providerForInvalidDigits
* @expectedException Respect\Validation\Exceptions\DigitException
*/
- public function testInvalidDigitsShouldFailAndThrowDigitException($invalidDigits, $aditional='')
+ public function testInvalidDigitsShouldFailAndThrowDigitException($invalidDigits, $additional='')
{
- $validator = new Digit($aditional);
+ $validator = new Digit($additional);
$this->assertFalse($validator->validate($invalidDigits));
$this->assertFalse($validator->assert($invalidDigits));
}
@@ -27,17 +27,17 @@ public function testInvalidDigitsShouldFailAndThrowDigitException($invalidDigits
* @dataProvider providerForInvalidParams
* @expectedException Respect\Validation\Exceptions\ComponentException
*/
- public function testInvalidConstructorParamsShouldThrowComponentExceptionUponInstantiation($aditional)
+ public function testInvalidConstructorParamsShouldThrowComponentExceptionUponInstantiation($additional)
{
- $validator = new Digit($aditional);
+ $validator = new Digit($additional);
}
/**
* @dataProvider providerAdditionalChars
*/
- public function testAdditionalCharsShouldBeRespected($aditional, $query)
+ public function testAdditionalCharsShouldBeRespected($additional, $query)
{
- $validator = new Digit($aditional);
+ $validator = new Digit($additional);
$this->assertTrue($validator->validate($query));
}
View
2 tests/library/Respect/Validation/Rules/EndsWithTest.php
@@ -18,7 +18,7 @@ public function testStringsEndingWithExpectedValueShouldPass($start, $input)
* @dataProvider providerForNotEndsWith
* @expectedException Respect\Validation\Exceptions\EndsWithException
*/
- public function testStringsNotEndingWithExpectedValueShoudNotPass($start, $input, $caseSensitive=false)
+ public function testStringsNotEndingWithExpectedValueShouldNotPass($start, $input, $caseSensitive=false)
{
$v = new EndsWith($start, $caseSensitive);
$this->assertFalse($v->__invoke($input));
View
2 tests/library/Respect/Validation/Rules/EqualsTest.php
@@ -18,7 +18,7 @@ public function testStringsContainingExpectedValueShouldPass($start, $input)
* @dataProvider providerForNotEquals
* @expectedException Respect\Validation\Exceptions\EqualsException
*/
- public function testStringsNotEqualsExpectedValueShoudNotPass($start, $input, $identical=false)
+ public function testStringsNotEqualsExpectedValueShouldNotPass($start, $input, $identical=false)
{
$v = new Equals($start, $identical);
$this->assertFalse($v->__invoke($input));
View
16 tests/library/Respect/Validation/Rules/GraphTest.php
@@ -6,19 +6,19 @@ class GraphTest extends \PHPUnit_Framework_TestCase
/**
* @dataProvider providerForValidGraph
*/
- public function testValidDataWithGraphCharsShouldReturnTrue($validGraph, $aditional='')
+ public function testValidDataWithGraphCharsShouldReturnTrue($validGraph, $additional='')
{
- $validator = new Graph($aditional);
+ $validator = new Graph($additional);
$this->assertTrue($validator->validate($validGraph));
}
/**
* @dataProvider providerForInvalidGraph
* @expectedException Respect\Validation\Exceptions\GraphException
*/
- public function testInvalidGraphShouldFailAndThrowGraphException($invalidGraph, $aditional='')
+ public function testInvalidGraphShouldFailAndThrowGraphException($invalidGraph, $additional='')
{
- $validator = new Graph($aditional);
+ $validator = new Graph($additional);
$this->assertFalse($validator->validate($invalidGraph));
$this->assertFalse($validator->assert($invalidGraph));
}
@@ -27,17 +27,17 @@ public function testInvalidGraphShouldFailAndThrowGraphException($invalidGraph,
* @dataProvider providerForInvalidParams
* @expectedException Respect\Validation\Exceptions\ComponentException
*/
- public function testInvalidConstructorParamsShouldThrowComponentExceptionUponInstantiation($aditional)
+ public function testInvalidConstructorParamsShouldThrowComponentExceptionUponInstantiation($additional)
{
- $validator = new Graph($aditional);
+ $validator = new Graph($additional);
}
/**
* @dataProvider providerAdditionalChars
*/
- public function testAdditionalCharsShouldBeRespected($aditional, $query)
+ public function testAdditionalCharsShouldBeRespected($additional, $query)
{
- $validator = new Graph($aditional);
+ $validator = new Graph($additional);
$this->assertTrue($validator->validate($query));
}
View
14 tests/library/Respect/Validation/Rules/LengthTest.php
@@ -4,9 +4,9 @@
class LengthTest extends \PHPUnit_Framework_TestCase
{
/**
- * @dataProvider providerForValidLenght
+ * @dataProvider providerForValidLength
*/
- public function testLenghtInsideBoundsShouldReturnTrue($string, $min, $max)
+ public function testLengthInsideBoundsShouldReturnTrue($string, $min, $max)
{
$validator = new Length($min, $max);
$this->assertTrue($validator->__invoke($string));
@@ -15,7 +15,7 @@ public function testLenghtInsideBoundsShouldReturnTrue($string, $min, $max)
}
/**
- * @dataProvider providerForInvalidLenghtInclusive
+ * @dataProvider providerForInvalidLengthInclusive
* @expectedException Respect\Validation\Exceptions\LengthException
*/
public function testLengthOutsideBoundsShouldThrowLengthException($string, $min, $max)
@@ -26,7 +26,7 @@ public function testLengthOutsideBoundsShouldThrowLengthException($string, $min,
}
/**
- * @dataProvider providerForInvalidLenght
+ * @dataProvider providerForInvalidLength
* @expectedException Respect\Validation\Exceptions\LengthException
*/
public function testLengthOutsideValidBoundsShouldThrowLengthException($string, $min, $max)
@@ -47,7 +47,7 @@ public function testInvalidConstructorParametersShouldThrowComponentExceptionUpo
$this->assertFalse($validator->assert($string));
}
- public function providerForValidLenght()
+ public function providerForValidLength()
{
return array(
array('', 1, 15),
@@ -60,7 +60,7 @@ public function providerForValidLenght()
);
}
- public function providerForInvalidLenghtInclusive()
+ public function providerForInvalidLengthInclusive()
{
return array(
array('alganet', 1, 7),
@@ -70,7 +70,7 @@ public function providerForInvalidLenghtInclusive()
);
}
- public function providerForInvalidLenght()
+ public function providerForInvalidLength()
{
return array(
array('alganet', 1, 3),
View
6 tests/library/Respect/Validation/Rules/OneOfTest.php
@@ -20,7 +20,7 @@ public function testValid()
$this->assertTrue($o->check('any'));
}
- public function testShorcutValid()
+ public function testShortcutValid()
{
$valid1 = new Callback(function() {
return false;
@@ -61,7 +61,7 @@ public function testInvalid()
/**
* @expectedException Respect\Validation\Exceptions\OneOfException
*/
- public function testShorcutInvalid()
+ public function testShortcutInvalid()
{
$valid1 = new Callback(function() {
return false;
@@ -90,7 +90,7 @@ public function testInvalidCheck()
/**
* @expectedException Respect\Validation\Exceptions\XdigitException
*/
- public function testShorcutInvalidCheck()
+ public function testShortcutInvalidCheck()
{
$xdigits = new Xdigit;
$o = $xdigits->addOr(new Alnum);
View
16 tests/library/Respect/Validation/Rules/PrntTest.php
@@ -6,19 +6,19 @@ class PrntTest extends \PHPUnit_Framework_TestCase
/**
* @dataProvider providerForValidPrint
*/
- public function testValidDataWithPrintCharsShouldReturnTrue($validPrint, $aditional='')
+ public function testValidDataWithPrintCharsShouldReturnTrue($validPrint, $additional='')
{
- $validator = new Prnt($aditional);
+ $validator = new Prnt($additional);
$this->assertTrue($validator->validate($validPrint));
}
/**
* @dataProvider providerForInvalidPrint
* @expectedException Respect\Validation\Exceptions\PrntException
*/
- public function testInvalidPrintShouldFailAndThrowPrntException($invalidPrint, $aditional='')
+ public function testInvalidPrintShouldFailAndThrowPrntException($invalidPrint, $additional='')
{
- $validator = new Prnt($aditional);
+ $validator = new Prnt($additional);
$this->assertFalse($validator->validate($invalidPrint));
$this->assertFalse($validator->assert($invalidPrint));
}
@@ -27,17 +27,17 @@ public function testInvalidPrintShouldFailAndThrowPrntException($invalidPrint, $
* @dataProvider providerForInvalidParams
* @expectedException Respect\Validation\Exceptions\ComponentException
*/
- public function testInvalidConstructorParamsShouldThrowComponentExceptionUponInstantiation($aditional)
+ public function testInvalidConstructorParamsShouldThrowComponentExceptionUponInstantiation($additional)
{
- $validator = new Prnt($aditional);
+ $validator = new Prnt($additional);
}
/**
* @dataProvider providerAdditionalChars
*/
- public function testAdditionalCharsShouldBeRespected($aditional, $query)
+ public function testAdditionalCharsShouldBeRespected($additional, $query)
{
- $validator = new Prnt($aditional);
+ $validator = new Prnt($additional);
$this->assertTrue($validator->validate($query));
}
View
16 tests/library/Respect/Validation/Rules/PunctTest.php
@@ -6,19 +6,19 @@ class PunctTest extends \PHPUnit_Framework_TestCase
/**
* @dataProvider providerForValidPunct
*/
- public function testValidDataWithPunctShouldReturnTrue($validPunct, $aditional='')
+ public function testValidDataWithPunctShouldReturnTrue($validPunct, $additional='')
{
- $validator = new Punct($aditional);
+ $validator = new Punct($additional);
$this->assertTrue($validator->validate($validPunct));
}
/**
* @dataProvider providerForInvalidPunct
* @expectedException Respect\Validation\Exceptions\PunctException
*/
- public function testInvalidPunctShouldFailAndThrowPunctException($invalidPunct, $aditional='')
+ public function testInvalidPunctShouldFailAndThrowPunctException($invalidPunct, $additional='')
{
- $validator = new Punct($aditional);
+ $validator = new Punct($additional);
$this->assertFalse($validator->validate($invalidPunct));
$this->assertFalse($validator->assert($invalidPunct));
}
@@ -27,17 +27,17 @@ public function testInvalidPunctShouldFailAndThrowPunctException($invalidPunct,
* @dataProvider providerForInvalidParams
* @expectedException Respect\Validation\Exceptions\ComponentException
*/
- public function testInvalidConstructorParamsShouldThrowComponentExceptionUponInstantiation($aditional)
+ public function testInvalidConstructorParamsShouldThrowComponentExceptionUponInstantiation($additional)
{
- $validator = new Punct($aditional);
+ $validator = new Punct($additional);
}
/**
* @dataProvider providerAdditionalChars
*/
- public function testAdditionalCharsShouldBeRespected($aditional, $query)
+ public function testAdditionalCharsShouldBeRespected($additional, $query)
{
- $validator = new Punct($aditional);
+ $validator = new Punct($additional);
$this->assertTrue($validator->validate($query));
}
View
16 tests/library/Respect/Validation/Rules/SpaceTest.php
@@ -6,19 +6,19 @@ class SpaceTest extends \PHPUnit_Framework_TestCase
/**
* @dataProvider providerForValidSpace
*/
- public function testValidDataWithSpaceShouldReturnTrue($validSpace, $aditional='')
+ public function testValidDataWithSpaceShouldReturnTrue($validSpace, $additional='')
{
- $validator = new Space($aditional);
+ $validator = new Space($additional);
$this->assertTrue($validator->validate($validSpace));
}
/**
* @dataProvider providerForInvalidSpace
* @expectedException Respect\Validation\Exceptions\SpaceException
*/
- public function testInvalidSpaceShouldFailAndThrowSpaceException($invalidSpace, $aditional='')
+ public function testInvalidSpaceShouldFailAndThrowSpaceException($invalidSpace, $additional='')
{
- $validator = new Space($aditional);
+ $validator = new Space($additional);
$this->assertFalse($validator->validate($invalidSpace));
$this->assertFalse($validator->assert($invalidSpace));
}
@@ -27,17 +27,17 @@ public function testInvalidSpaceShouldFailAndThrowSpaceException($invalidSpace,
* @dataProvider providerForInvalidParams
* @expectedException Respect\Validation\Exceptions\ComponentException
*/
- public function testInvalidConstructorParamsShouldThrowComponentExceptionUponInstantiation($aditional)
+ public function testInvalidConstructorParamsShouldThrowComponentExceptionUponInstantiation($additional)
{
- $validator = new Space($aditional);
+ $validator = new Space($additional);
}
/**
* @dataProvider providerAdditionalChars
*/
- public function testAdditionalCharsShouldBeRespected($aditional, $query)
+ public function testAdditionalCharsShouldBeRespected($additional, $query)
{
- $validator = new Space($aditional);
+ $validator = new Space($additional);
$this->assertTrue($validator->validate($query));
}
View
16 tests/library/Respect/Validation/Rules/VowelTest.php
@@ -6,19 +6,19 @@ class VowelTest extends \PHPUnit_Framework_TestCase
/**
* @dataProvider providerForValidVowels
*/
- public function testValidDataWithVowelsShouldReturnTrue($validVowels, $aditional='')
+ public function testValidDataWithVowelsShouldReturnTrue($validVowels, $additional='')
{
- $validator = new Vowel($aditional);
+ $validator = new Vowel($additional);
$this->assertTrue($validator->validate($validVowels));
}
/**
* @dataProvider providerForInvalidVowels
* @expectedException Respect\Validation\Exceptions\VowelException
*/
- public function testInvalidVowelsShouldFailAndThrowVowelException($invalidVowels, $aditional='')
+ public function testInvalidVowelsShouldFailAndThrowVowelException($invalidVowels, $additional='')
{
- $validator = new Vowel($aditional);
+ $validator = new Vowel($additional);
$this->assertFalse($validator->validate($invalidVowels));
$this->assertFalse($validator->assert($invalidVowels));
}
@@ -27,17 +27,17 @@ public function testInvalidVowelsShouldFailAndThrowVowelException($invalidVowels
* @dataProvider providerForInvalidParams
* @expectedException Respect\Validation\Exceptions\ComponentException
*/
- public function testInvalidConstructorParamsShouldThrowComponentExceptionUponInstantiation($aditional)
+ public function testInvalidConstructorParamsShouldThrowComponentExceptionUponInstantiation($additional)
{
- $validator = new Vowel($aditional);
+ $validator = new Vowel($additional);
}
/**
* @dataProvider providerAdditionalChars
*/
- public function testAdditionalCharsShouldBeRespected($aditional, $query)
+ public function testAdditionalCharsShouldBeRespected($additional, $query)
{
- $validator = new Vowel($aditional);
+ $validator = new Vowel($additional);
$this->assertTrue($validator->validate($query));
}
View
4 tests/library/Respect/Validation/Rules/XdigitTest.php
@@ -33,9 +33,9 @@ public function testInvalidHexadecimalDigitsShouldThrowXdigitException($input)
/**
* @dataProvider providerAdditionalChars
*/
- public function testAdditionalCharsShouldBeRespected($aditional, $query)
+ public function testAdditionalCharsShouldBeRespected($additional, $query)
{
- $validator = new Xdigit($aditional);
+ $validator = new Xdigit($additional);
$this->assertTrue($validator->validate($query));
}

0 comments on commit 2776a40

Please sign in to comment.