summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tests/lib/SimpleSAML/ConfigurationTest.php17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/lib/SimpleSAML/ConfigurationTest.php b/tests/lib/SimpleSAML/ConfigurationTest.php
index 548f2a9..c85adf2 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()
*/