respect-validation/tests/unit
Henrique Moody a107b8cb9f
Prevent validators from generating validatorBuilder Ids
When calling `v::validatorName()`, a `ValidatorBuilder` is instantiated
to manage the validation chain. However, users generally expect the ID
to reflect the specific validator invoked rather than the internal
builder class.

This commit updates `Id::fromValidator()` to resolve the ID from the
underlying validator when it is the sole member of the
`ValidatorBuilder`, ensuring more intuitive identification.
2026-01-26 13:57:39 +01:00
..
Exceptions Introduce REUSE compliance 2026-01-21 06:28:11 +00:00
Helpers Introduce REUSE compliance 2026-01-21 06:28:11 +00:00
Message Replace template rendering code with Respect\StringFormatter 2026-01-21 17:29:15 +01:00
Transformers Introduce REUSE compliance 2026-01-21 06:28:11 +00:00
Validators Introduce REUSE compliance 2026-01-21 06:28:11 +00:00
ContainerRegistryTest.php Allow passing definitions to the ContainerRegistry 2026-01-26 10:13:48 +01:00
IdTest.php Prevent validators from generating validatorBuilder Ids 2026-01-26 13:57:39 +01:00
NamespacedRuleFactoryTest.php Introduce REUSE compliance 2026-01-21 06:28:11 +00:00
ResultQueryTest.php Replace template rendering code with Respect\StringFormatter 2026-01-21 17:29:15 +01:00
ValidatorTest.php Replace template rendering code with Respect\StringFormatter 2026-01-21 17:29:15 +01:00