Test for exceptions when creating config

This commit is contained in:
Pierre Rudloff 2016-10-18 10:45:16 +02:00
parent 201d7c3376
commit 85fb3a54cd
2 changed files with 39 additions and 1 deletions

View file

@ -42,6 +42,17 @@ class ConfigTest extends \PHPUnit_Framework_TestCase
$this->assertInternalType('string', $this->config->rtmpdump);
}
/**
* Test the getInstance function with a missing config file.
*
* @return void
* @expectedException Exception
*/
public function testGetInstanceWithMissingFile()
{
Config::getInstance('foo');
}
/**
* Test the getInstance function with the CONVERT environment variable.
*