diff --git a/tests/lib/SimpleSAML/ConfigurationTest.php b/tests/lib/SimpleSAML/ConfigurationTest.php
index 548f2a966646ed19f88812c88d38e445a75d74ee..c85adf2907badae35d9d192c0c8c6b9c742719a3 100644
--- a/tests/lib/SimpleSAML/ConfigurationTest.php
+++ b/tests/lib/SimpleSAML/ConfigurationTest.php
@@ -451,6 +451,23 @@ class Test_SimpleSAML_Configuration extends PHPUnit_Framework_TestCase
         $c->getConfigList('opt');
     }
 
+
+    /**
+     * Test SimpleSAML_Configuration::getConfigList() with an array of wrong options.
+     * @expectedException Exception
+     */
+    public function testGetConfigListWrongArrayValues()
+    {
+        $c = SimpleSAML_Configuration::loadFromArray(array(
+            'opts' => array(
+                'a',
+                'b',
+            ),
+        ));
+        $c->getConfigList('opts');
+    }
+
+
     /**
      * Test SimpleSAML_Configuration::getOptions()
      */