mirror of
https://github.com/Respect/Validation.git
synced 2024-06-04 14:52:17 +02:00
Improve grammar of "Equals" rule
This commit is contained in:
parent
ad123b1bf4
commit
d65e713080
|
@ -50,7 +50,7 @@ v::keyValue('password_confirmation', 'equals', 'password')->check($input);
|
|||
The above code may generate the message:
|
||||
|
||||
```
|
||||
password_confirmation must be equals "password"
|
||||
password_confirmation must equal "password"
|
||||
```
|
||||
|
||||
## Changelog
|
||||
|
|
|
@ -15,10 +15,10 @@ class EqualsException extends ValidationException
|
|||
{
|
||||
public static $defaultTemplates = [
|
||||
self::MODE_DEFAULT => [
|
||||
self::STANDARD => '{{name}} must be equals {{compareTo}}',
|
||||
self::STANDARD => '{{name}} must equal {{compareTo}}',
|
||||
],
|
||||
self::MODE_NEGATIVE => [
|
||||
self::STANDARD => '{{name}} must not be equals {{compareTo}}',
|
||||
self::STANDARD => '{{name}} must not equal {{compareTo}}',
|
||||
],
|
||||
];
|
||||
}
|
||||
|
|
|
@ -12,4 +12,4 @@ try {
|
|||
}
|
||||
?>
|
||||
--EXPECTF--
|
||||
"test 1234" must be equals "test 123"
|
||||
"test 1234" must equal "test 123"
|
||||
|
|
|
@ -12,4 +12,4 @@ try {
|
|||
}
|
||||
?>
|
||||
--EXPECTF--
|
||||
- "test 1234" must be equals "test 123"
|
||||
- "test 1234" must equal "test 123"
|
||||
|
|
|
@ -12,4 +12,4 @@ try {
|
|||
}
|
||||
?>
|
||||
--EXPECTF--
|
||||
"test 123" must not be equals "test 123"
|
||||
"test 123" must not equal "test 123"
|
||||
|
|
|
@ -12,4 +12,4 @@ try {
|
|||
}
|
||||
?>
|
||||
--EXPECTF--
|
||||
- "test 123" must not be equals "test 123"
|
||||
- "test 123" must not equal "test 123"
|
||||
|
|
|
@ -17,4 +17,4 @@ try {
|
|||
}
|
||||
?>
|
||||
--EXPECTF--
|
||||
password must be equals "password_confirmation"
|
||||
password must equal "password_confirmation"
|
||||
|
|
|
@ -42,7 +42,7 @@ class EqualsTest extends \PHPUnit_Framework_TestCase
|
|||
|
||||
/**
|
||||
* @expectedException \Respect\Validation\Exceptions\EqualsException
|
||||
* @expectedExceptionMessage "24" must be equals 42
|
||||
* @expectedExceptionMessage "24" must equal 42
|
||||
*/
|
||||
public function testShouldThrowTheProperExceptionWhenFailure()
|
||||
{
|
||||
|
|
|
@ -103,8 +103,8 @@ class KeyValueTest extends PHPUnit_Framework_TestCase
|
|||
}
|
||||
|
||||
/**
|
||||
* @expectedException \Respect\Validation\Exceptions\EqualsException
|
||||
* @expectedExceptionMessage foo must be equals "bar"
|
||||
* @expectedException Respect\Validation\Exceptions\EqualsException
|
||||
* @expectedExceptionMessage foo must equal "bar"
|
||||
*/
|
||||
public function testShouldCheckWhenDefinedValuesDoesNotMatch()
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue