public function testRegex()
{
$good = ['test', '123', 'JYXO'];
$wrong = ['test-test', '$test', '--', '..//'];
$pattern = '~^\\w+$~i';
$validator = new Validator\Regex($pattern);
$this->executeTests($validator, $good, $wrong);
$this->assertEquals($pattern, $validator->getPattern());
$this->expectException(\Jyxo\Input\Validator\Exception::class);
$validator->setPattern('');
}