public function testCanLoadFromFile()
{
Diesel::registerInstantiator('\\Bart\\Shell', function () {
// Actually want to see how this works with a real Shell
return new Shell();
});
$this->doStuffWithTempDir(function (BaseTestCase $phpu, $dirName) {
Configuration::configure($dirName);
// Copy sample INI file to path Configuration will look for TestConfig INI
copy(BART_DIR . '/test/etc/conf-parser.conf', $dirName . '/test.conf');
$configs = new TestConfig(false);
$phpu->assertEquals('black', $configs->color(), 'TestConfigs color');
$phpu->assertEquals('Quail', $configs->wildGame(), 'TestConfigs wildGame');
});
}