respect-validation/tests/unit/Rules/Core
Henrique Moody 137c74c5b3
Change how we trace the path of results
Currently, we’re using scalar values to trace paths. The problem with
that approach is that we can’t create a reliable hierarchy with them, as
we can’t know for sure when a path is the same for different rules. By
using an object, we can easily compare and create a parent-child
relationship with it.

While making these changes, I deemed it necessary to also create objects
to handle Name and Id, which makes the code simpler and more robust. By
having Name and Path, we can create specific stringifiers that allow us
to customise how we render those values.

I didn’t manage to make those changes atomically, which is why this
commit makes so many changes. I found myself moving back and forth, and
making all those changes at once was the best solution I found.
2025-12-20 22:19:17 +01:00
..
ComparisonTest.php Move core rules into the "Core" namespace 2024-03-03 16:12:58 +01:00
CompositeTest.php Handle names via the Named rule 2024-12-26 23:10:19 +01:00
EnvelopeTest.php Rename Result->isValid method 2025-03-31 21:29:37 +02:00
FilteredNonEmptyArrayTest.php Change how we trace the path of results 2025-12-20 22:19:17 +01:00
FilteredStringTest.php Bump respect/coding-standard from 4 to 5 2025-12-18 19:03:39 +01:00
ReducerTest.php Change how we trace the path of results 2025-12-20 22:19:17 +01:00
SimpleTest.php Rename Result->isValid method 2025-03-31 21:29:37 +02:00
WrapperTest.php Handle names via the Named rule 2024-12-26 23:10:19 +01:00