Skip to content
Snippets Groups Projects
Commit 864de72f authored by Jaime Perez Crespo's avatar Jaime Perez Crespo
Browse files

Add a test for SimpleSAML_Configuration::getConfigList().

parent 85ff5bf3
No related branches found
No related tags found
No related merge requests found
...@@ -451,6 +451,23 @@ class Test_SimpleSAML_Configuration extends PHPUnit_Framework_TestCase ...@@ -451,6 +451,23 @@ class Test_SimpleSAML_Configuration extends PHPUnit_Framework_TestCase
$c->getConfigList('opt'); $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() * Test SimpleSAML_Configuration::getOptions()
*/ */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment