diff --git a/library/Exceptions/FalseValException.php b/library/Exceptions/FalseValException.php index 988df291..37a78cc5 100644 --- a/library/Exceptions/FalseValException.php +++ b/library/Exceptions/FalseValException.php @@ -20,10 +20,10 @@ final class FalseValException extends ValidationException */ protected $defaultTemplates = [ self::MODE_DEFAULT => [ - self::STANDARD => '{{name}} is not considered as "False"', + self::STANDARD => '{{name}} must evaluate to `false`', ], self::MODE_NEGATIVE => [ - self::STANDARD => '{{name}} is considered as "False"', + self::STANDARD => '{{name}} must not evaluate to `false`', ], ]; } diff --git a/library/Exceptions/NoException.php b/library/Exceptions/NoException.php index b29b2414..227b5a93 100644 --- a/library/Exceptions/NoException.php +++ b/library/Exceptions/NoException.php @@ -19,10 +19,10 @@ final class NoException extends ValidationException */ protected $defaultTemplates = [ self::MODE_DEFAULT => [ - self::STANDARD => '{{name}} is not considered as "No"', + self::STANDARD => '{{name}} must be similar to "No"', ], self::MODE_NEGATIVE => [ - self::STANDARD => '{{name}} is considered as "No"', + self::STANDARD => '{{name}} must not be similar to "No"', ], ]; } diff --git a/library/Exceptions/TrueValException.php b/library/Exceptions/TrueValException.php index 4e186cae..f0a4fe2a 100644 --- a/library/Exceptions/TrueValException.php +++ b/library/Exceptions/TrueValException.php @@ -22,10 +22,10 @@ final class TrueValException extends ValidationException */ protected $defaultTemplates = [ self::MODE_DEFAULT => [ - self::STANDARD => '{{name}} is not considered as "True"', + self::STANDARD => '{{name}} must evaluate to `true`', ], self::MODE_NEGATIVE => [ - self::STANDARD => '{{name}} is considered as "True"', + self::STANDARD => '{{name}} must not evaluate to `true`', ], ]; } diff --git a/library/Exceptions/YesException.php b/library/Exceptions/YesException.php index 132e178b..7df71f09 100644 --- a/library/Exceptions/YesException.php +++ b/library/Exceptions/YesException.php @@ -20,10 +20,10 @@ final class YesException extends ValidationException */ protected $defaultTemplates = [ self::MODE_DEFAULT => [ - self::STANDARD => '{{name}} is not considered as "Yes"', + self::STANDARD => '{{name}} must be similar to "Yes"', ], self::MODE_NEGATIVE => [ - self::STANDARD => '{{name}} is considered as "Yes"', + self::STANDARD => '{{name}} must not be similar to "Yes"', ], ]; } diff --git a/tests/integration/rules/falseVal.phpt b/tests/integration/rules/falseVal.phpt index 71391044..d06f030e 100644 --- a/tests/integration/rules/falseVal.phpt +++ b/tests/integration/rules/falseVal.phpt @@ -37,7 +37,7 @@ try { ?> --EXPECT-- -`TRUE` is not considered as "False" -"false" is considered as "False" -- 1 is not considered as "False" -- 0 is considered as "False" +`TRUE` must evaluate to `false` +"false" must not evaluate to `false` +- 1 must evaluate to `false` +- 0 must not evaluate to `false` diff --git a/tests/integration/rules/no.phpt b/tests/integration/rules/no.phpt index 439b7356..29e21855 100644 --- a/tests/integration/rules/no.phpt +++ b/tests/integration/rules/no.phpt @@ -36,7 +36,7 @@ try { } ?> --EXPECT-- -"No" is considered as "No" -"Yes" is not considered as "No" -- "No" is considered as "No" -- "Yes" is not considered as "No" +"No" must not be similar to "No" +"Yes" must be similar to "No" +- "No" must not be similar to "No" +- "Yes" must be similar to "No" diff --git a/tests/integration/rules/trueVal.phpt b/tests/integration/rules/trueVal.phpt index 4c90e4a3..fc149389 100644 --- a/tests/integration/rules/trueVal.phpt +++ b/tests/integration/rules/trueVal.phpt @@ -36,7 +36,7 @@ try { } ?> --EXPECT-- -`FALSE` is not considered as "True" -1 is considered as "True" -- 0 is not considered as "True" -- "true" is considered as "True" +`FALSE` must evaluate to `true` +1 must not evaluate to `true` +- 0 must evaluate to `true` +- "true" must not evaluate to `true` diff --git a/tests/integration/rules/yes.phpt b/tests/integration/rules/yes.phpt index 418ee886..9a41463b 100644 --- a/tests/integration/rules/yes.phpt +++ b/tests/integration/rules/yes.phpt @@ -36,7 +36,7 @@ try { } ?> --EXPECT-- -"Yes" is considered as "Yes" -"si" is not considered as "Yes" -- "Yes" is considered as "Yes" -- "si" is not considered as "Yes" +"Yes" must not be similar to "Yes" +"si" must be similar to "Yes" +- "Yes" must not be similar to "Yes" +- "si" must be similar to "Yes"