use PHPUnit\Framework\TestCase;
use Symfony\Component\Config\Definition\Exception\InvalidTypeException;
use Symfony\Component\Config\Definition\FloatNode;
class FloatNodeTest extends TestCase
{ /**
* @dataProvider getValidValues
*/
public function testNormalize(int|float
$value) { $node =
new FloatNode('test'
);
$this->
assertSame($value,
$node->
normalize($value));
} /**
* @dataProvider getValidValues
*/
public function testValidNonEmptyValues(int|float
$value) { $node =
new FloatNode('test'
);
$node->
setAllowEmptyValue(false
);