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