renaming config file to make updates easier, resolving #50

This commit is contained in:
El RIDO
2015-10-22 21:13:15 +02:00
parent 5a9879623f
commit 176dff3b70
4 changed files with 20 additions and 6 deletions

View File

@@ -75,6 +75,13 @@ class configurationTest extends PHPUnit_Framework_TestCase
$this->assertEquals($this->_options, $conf->get(), 'newly generated configuration is correct');
}
public function testHandleMissingConfigFile()
{
@unlink(CONF);
$conf = new configuration;
$this->assertEquals($this->_options, $conf->get(), 'returns correct defaults on missing file');
}
/**
* @expectedException Exception
* @expectedExceptionCode 2