respect-validation/tests/integration/rules
Henrique Moody 8a7bc1ab7a
Improve readability of integration tests
The integration tests use the same pattern to test exception messages.
With my changes, we won't validate which exception we throw in those
tests, but matching the message is enough. I created three functions to
replace most of those tests.

Signed-off-by: Henrique Moody <henriquemoody@gmail.com>
2023-04-01 07:40:42 +02:00
..
allOf.phpt Improve readability of integration tests 2023-04-01 07:40:42 +02:00
alnum.phpt Improve readability of integration tests 2023-04-01 07:40:42 +02:00
alpha.phpt Improve readability of integration tests 2023-04-01 07:40:42 +02:00
alwaysInvalid.phpt Improve readability of integration tests 2023-04-01 07:40:42 +02:00
alwaysValid.phpt Improve readability of integration tests 2023-04-01 07:40:42 +02:00
arrayType.phpt Improve readability of integration tests 2023-04-01 07:40:42 +02:00
arrayVal.phpt Improve readability of integration tests 2023-04-01 07:40:42 +02:00
base.phpt Improve readability of integration tests 2023-04-01 07:40:42 +02:00
base64.phpt Improve readability of integration tests 2023-04-01 07:40:42 +02:00
beetwen.phpt Improve readability of integration tests 2023-04-01 07:40:42 +02:00
beetwen_5.phpt Improve readability of integration tests 2023-04-01 07:40:42 +02:00
beetwen_6.phpt Improve readability of integration tests 2023-04-01 07:40:42 +02:00
boolType.phpt Improve readability of integration tests 2023-04-01 07:40:42 +02:00
boolVal.phpt Improve readability of integration tests 2023-04-01 07:40:42 +02:00
bsn.phpt Improve readability of integration tests 2023-04-01 07:40:42 +02:00
call.phpt Improve readability of integration tests 2023-04-01 07:40:42 +02:00
callableType.phpt Improve readability of integration tests 2023-04-01 07:40:42 +02:00
callback.phpt Improve readability of integration tests 2023-04-01 07:40:42 +02:00
charset.phpt Improve readability of integration tests 2023-04-01 07:40:42 +02:00
cnh.phpt Improve readability of integration tests 2023-04-01 07:40:42 +02:00
cnpj.phpt Improve readability of integration tests 2023-04-01 07:40:42 +02:00
cntrl.phpt Improve readability of integration tests 2023-04-01 07:40:42 +02:00
consonant.phpt Improve readability of integration tests 2023-04-01 07:40:42 +02:00
contains.phpt Improve readability of integration tests 2023-04-01 07:40:42 +02:00
containsAny.phpt Improve readability of integration tests 2023-04-01 07:40:42 +02:00
countable.phpt Improve readability of integration tests 2023-04-01 07:40:42 +02:00
countryCode.phpt Improve readability of integration tests 2023-04-01 07:40:42 +02:00
cpf.phpt Improve readability of integration tests 2023-04-01 07:40:42 +02:00
creditCard.phpt Improve readability of integration tests 2023-04-01 07:40:42 +02:00
currencyCode.phpt Improve readability of integration tests 2023-04-01 07:40:42 +02:00
date.phpt Improve readability of integration tests 2023-04-01 07:40:42 +02:00
dateTime.phpt Improve readability of integration tests 2023-04-01 07:40:42 +02:00
decimal.phpt Improve readability of integration tests 2023-04-01 07:40:42 +02:00
digit.phpt Improve readability of integration tests 2023-04-01 07:40:42 +02:00
directory.phpt Improve readability of integration tests 2023-04-01 07:40:42 +02:00
domain.phpt Improve readability of integration tests 2023-04-01 07:40:42 +02:00
each.phpt Improve readability of integration tests 2023-04-01 07:40:42 +02:00
email.phpt Improve readability of integration tests 2023-04-01 07:40:42 +02:00
endsWith.phpt Improve readability of integration tests 2023-04-01 07:40:42 +02:00
equals.phpt Improve readability of integration tests 2023-04-01 07:40:42 +02:00
equivalent.phpt Improve readability of integration tests 2023-04-01 07:40:42 +02:00
even.phpt Improve readability of integration tests 2023-04-01 07:40:42 +02:00
executable.phpt Improve readability of integration tests 2023-04-01 07:40:42 +02:00
exists.phpt Improve readability of integration tests 2023-04-01 07:40:42 +02:00
extension.phpt Improve readability of integration tests 2023-04-01 07:40:42 +02:00
factor.phpt Improve readability of integration tests 2023-04-01 07:40:42 +02:00
falseVal.phpt Improve readability of integration tests 2023-04-01 07:40:42 +02:00
fibonacci.phpt Improve readability of integration tests 2023-04-01 07:40:42 +02:00
file.phpt Improve readability of integration tests 2023-04-01 07:40:42 +02:00
filterVar.phpt Improve readability of integration tests 2023-04-01 07:40:42 +02:00
finite.phpt Improve readability of integration tests 2023-04-01 07:40:42 +02:00
floatType.phpt Improve readability of integration tests 2023-04-01 07:40:42 +02:00
floatval.phpt Improve readability of integration tests 2023-04-01 07:40:42 +02:00
graph.phpt Improve readability of integration tests 2023-04-01 07:40:42 +02:00
greaterThan.phpt Improve readability of integration tests 2023-04-01 07:40:42 +02:00
hexRgbColor.phpt Improve readability of integration tests 2023-04-01 07:40:42 +02:00
iban.phpt Improve readability of integration tests 2023-04-01 07:40:42 +02:00
identical.phpt Improve readability of integration tests 2023-04-01 07:40:42 +02:00
image.phpt Improve readability of integration tests 2023-04-01 07:40:42 +02:00
imei.phpt Improve readability of integration tests 2023-04-01 07:40:42 +02:00
in.phpt Improve readability of integration tests 2023-04-01 07:40:42 +02:00
infinite.phpt Improve readability of integration tests 2023-04-01 07:40:42 +02:00
instance.phpt Improve readability of integration tests 2023-04-01 07:40:42 +02:00
intType.phpt Improve readability of integration tests 2023-04-01 07:40:42 +02:00
intVal.phpt Improve readability of integration tests 2023-04-01 07:40:42 +02:00
ip.phpt Improve readability of integration tests 2023-04-01 07:40:42 +02:00
isbn.phpt Improve readability of integration tests 2023-04-01 07:40:42 +02:00
iterableType.phpt Improve readability of integration tests 2023-04-01 07:40:42 +02:00
json.phpt Improve readability of integration tests 2023-04-01 07:40:42 +02:00
keyNested_1.phpt Dusting off. See CHANGELOG.md for more details on this commit 2023-02-13 03:59:11 -03:00
keyValue.phpt Improve readability of integration tests 2023-04-01 07:40:42 +02:00
languageCode.phpt Improve readability of integration tests 2023-04-01 07:40:42 +02:00
leapDate.phpt Improve readability of integration tests 2023-04-01 07:40:42 +02:00
leapYear.phpt Improve readability of integration tests 2023-04-01 07:40:42 +02:00
length.phpt Improve readability of integration tests 2023-04-01 07:40:42 +02:00
lessThan.phpt Improve readability of integration tests 2023-04-01 07:40:42 +02:00
lowercase.phpt Improve readability of integration tests 2023-04-01 07:40:42 +02:00
luhn.phpt Improve readability of integration tests 2023-04-01 07:40:42 +02:00
macAddress.phpt Improve readability of integration tests 2023-04-01 07:40:42 +02:00
max.phpt Improve readability of integration tests 2023-04-01 07:40:42 +02:00
maxAge.phpt Improve readability of integration tests 2023-04-01 07:40:42 +02:00
mimetype.phpt Improve readability of integration tests 2023-04-01 07:40:42 +02:00
min.phpt Improve readability of integration tests 2023-04-01 07:40:42 +02:00
minAge.phpt Improve readability of integration tests 2023-04-01 07:40:42 +02:00
multiple.phpt Improve readability of integration tests 2023-04-01 07:40:42 +02:00
negative.phpt Improve readability of integration tests 2023-04-01 07:40:42 +02:00
nfeAccessKey.phpt Improve readability of integration tests 2023-04-01 07:40:42 +02:00
nif.phpt Improve readability of integration tests 2023-04-01 07:40:42 +02:00
nip.phpt Improve readability of integration tests 2023-04-01 07:40:42 +02:00
no.phpt Improve readability of integration tests 2023-04-01 07:40:42 +02:00
notBlank.phpt Improve readability of integration tests 2023-04-01 07:40:42 +02:00
notEmoji.phpt Improve readability of integration tests 2023-04-01 07:40:42 +02:00
notEmpty.phpt Improve readability of integration tests 2023-04-01 07:40:42 +02:00
notOptional.phpt Improve readability of integration tests 2023-04-01 07:40:42 +02:00
noWhitespace.phpt Improve readability of integration tests 2023-04-01 07:40:42 +02:00
nullType.phpt Improve readability of integration tests 2023-04-01 07:40:42 +02:00
number.phpt Improve readability of integration tests 2023-04-01 07:40:42 +02:00
numericVal.phpt Improve readability of integration tests 2023-04-01 07:40:42 +02:00
objectType.phpt Improve readability of integration tests 2023-04-01 07:40:42 +02:00
odd.phpt Improve readability of integration tests 2023-04-01 07:40:42 +02:00
optional.phpt Improve readability of integration tests 2023-04-01 07:40:42 +02:00
perfectSquare.phpt Improve readability of integration tests 2023-04-01 07:40:42 +02:00
pesel.phpt Improve readability of integration tests 2023-04-01 07:40:42 +02:00
phone.phpt Improve readability of integration tests 2023-04-01 07:40:42 +02:00
phplabel.phpt Improve readability of integration tests 2023-04-01 07:40:42 +02:00
pis.phpt Improve readability of integration tests 2023-04-01 07:40:42 +02:00
polishIdCard.phpt Improve readability of integration tests 2023-04-01 07:40:42 +02:00
positive.phpt Improve readability of integration tests 2023-04-01 07:40:42 +02:00
postalCode.phpt Improve readability of integration tests 2023-04-01 07:40:42 +02:00
primeNumber.phpt Improve readability of integration tests 2023-04-01 07:40:42 +02:00
printable.phpt Improve readability of integration tests 2023-04-01 07:40:42 +02:00
punct.phpt Improve readability of integration tests 2023-04-01 07:40:42 +02:00
readable.phpt Improve readability of integration tests 2023-04-01 07:40:42 +02:00
regex.phpt Improve readability of integration tests 2023-04-01 07:40:42 +02:00
resourceType.phpt Improve readability of integration tests 2023-04-01 07:40:42 +02:00
roman.phpt Improve readability of integration tests 2023-04-01 07:40:42 +02:00
scalarVal.phpt Improve readability of integration tests 2023-04-01 07:40:42 +02:00
size.phpt Improve readability of integration tests 2023-04-01 07:40:42 +02:00
slug.phpt Improve readability of integration tests 2023-04-01 07:40:42 +02:00
sorted.phpt Improve readability of integration tests 2023-04-01 07:40:42 +02:00
space.phpt Improve readability of integration tests 2023-04-01 07:40:42 +02:00
startsWith.phpt Improve readability of integration tests 2023-04-01 07:40:42 +02:00
stringType.phpt Improve readability of integration tests 2023-04-01 07:40:42 +02:00
stringVal.phpt Improve readability of integration tests 2023-04-01 07:40:42 +02:00
subset.phpt Improve readability of integration tests 2023-04-01 07:40:42 +02:00
symbolicLink.phpt Improve readability of integration tests 2023-04-01 07:40:42 +02:00
time.phpt Improve readability of integration tests 2023-04-01 07:40:42 +02:00
tld.phpt Improve readability of integration tests 2023-04-01 07:40:42 +02:00
trueVal.phpt Improve readability of integration tests 2023-04-01 07:40:42 +02:00
type.phpt Improve readability of integration tests 2023-04-01 07:40:42 +02:00
unique.phpt Improve readability of integration tests 2023-04-01 07:40:42 +02:00
uploaded.phpt Improve readability of integration tests 2023-04-01 07:40:42 +02:00
uppercase.phpt Improve readability of integration tests 2023-04-01 07:40:42 +02:00
url.phpt Improve readability of integration tests 2023-04-01 07:40:42 +02:00
uuid.phpt Improve readability of integration tests 2023-04-01 07:40:42 +02:00
version.phpt Improve readability of integration tests 2023-04-01 07:40:42 +02:00
videoUrl.phpt Improve readability of integration tests 2023-04-01 07:40:42 +02:00
vowel.phpt Improve readability of integration tests 2023-04-01 07:40:42 +02:00
when.phpt Improve readability of integration tests 2023-04-01 07:40:42 +02:00
writable.phpt Improve readability of integration tests 2023-04-01 07:40:42 +02:00
xdigit.phpt Improve readability of integration tests 2023-04-01 07:40:42 +02:00
yes.phpt Improve readability of integration tests 2023-04-01 07:40:42 +02:00