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