public function testGetLanguageListIncorrectConfig()
{
// test non-existent langs
$c = \SimpleSAML_Configuration::loadFromArray(array('language.available' => array('foo', 'bar')), '', 'simplesaml');
$l = new Language($c);
$l->setLanguage('foo');
$this->assertEquals(array('en' => true), $l->getLanguageList());
}