$this->setExpectedException( 'UnexpectedValueException' );
$factory->makeConfig( 'unittest' );
}
+
+ /**
+ * @covers ConfigFactory::getDefaultInstance
+ */
+ public function testGetDefaultInstance() {
+ $factory = ConfigFactory::getDefaultInstance();
+ $this->assertInstanceOf( 'Config', $factory->makeConfig( 'main' ) );
+
+ $this->setExpectedException( 'ConfigException' );
+ $factory->makeConfig( 'xyzzy' );
+ }
}