Closed ViliamKopecky closed 3 years ago
Version: v1.0.2
before() helper is not called on things nested in Expect::anyOf.
before()
Expect::anyOf
test(function() { // normalization through anyOf $schema = Expect::anyOf(Expect::string()->before(function($v) { return (string) $v; })); Assert::same('1', $schema->normalize(1, new Context)); });
before() should work consistently inside anyOf.
anyOf
Version: v1.0.2
Bug Description
before()
helper is not called on things nested inExpect::anyOf
.Steps To Reproduce
Expected Behavior
before()
should work consistently insideanyOf
.