diff options
author | Jaime Perez Crespo <jaime.perez@uninett.no> | 2016-02-02 15:59:43 +0100 |
---|---|---|
committer | Jaime Perez Crespo <jaime.perez@uninett.no> | 2016-02-02 15:59:43 +0100 |
commit | 864de72f538f4b0c3a258e15a14fb276e609af70 (patch) | |
tree | 8132276cc3299acc3414579e20f3aad56e2926dc /tests/lib | |
parent | 85ff5bf356b62a5ad8428ceb0ecd1389d0340074 (diff) | |
download | simplesamlphp-864de72f538f4b0c3a258e15a14fb276e609af70.zip simplesamlphp-864de72f538f4b0c3a258e15a14fb276e609af70.tar.gz simplesamlphp-864de72f538f4b0c3a258e15a14fb276e609af70.tar.bz2 |
Add a test for SimpleSAML_Configuration::getConfigList().
Diffstat (limited to 'tests/lib')
-rw-r--r-- | tests/lib/SimpleSAML/ConfigurationTest.php | 17 |
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() */ |