Update version and improve config validation

This commit is contained in:
netkas 2024-09-26 14:57:27 -04:00
parent 6eb1f68f98
commit beb133dc75
3 changed files with 25 additions and 74 deletions

View file

@ -52,8 +52,10 @@ class ConfigurationTest extends TestCase
public function testGetMethodWithValidKey(): void
{
$config = new Configuration('test');
$config->set('key1.key2', 'value');
$this->assertTrue($config->set('key1.key2', 'value', true));
$this->assertEquals('value', $config->get('key1.key2'));
$this->assertTrue($config->set('foo.fizz_buzz', 'value', true));
$this->assertEquals('value', $config->get('foo.fizz_buzz'));
}
/**