publicfunctiontestFloatMinAssertion() { $this->expectException(InvalidConfigurationException::class); $this->expectExceptionMessage('The value 400 is too small for path "foo". Should be greater than or equal to 500'); $def = newFloatNodeDefinition('foo'); $def->min(5E2)->getNode()->finalize(4e2); }
publicfunctiontestFloatMaxAssertion() { $this->expectException(InvalidConfigurationException::class); $this->expectExceptionMessage('The value 4.3 is too big for path "foo". Should be less than or equal to 0.3'); $def = newFloatNodeDefinition('foo'); $def->max(0.3)->getNode()->finalize(4.3); }