Skip to content
Snippets Groups Projects
Commit bd59154e authored by Thijs Kinkhorst's avatar Thijs Kinkhorst
Browse files

Remove unreachable exception: array key is always int or string

parent ceabb113
No related branches found
No related tags found
No related merge requests found
......@@ -45,10 +45,6 @@ class sspmod_core_Auth_Process_AttributeAdd extends SimpleSAML_Auth_ProcessingFi
continue;
}
if(!is_string($name)) {
throw new Exception('Invalid attribute name: ' . var_export($name, TRUE));
}
if(!is_array($values)) {
$values = array($values);
}
......
......@@ -154,25 +154,6 @@ class Test_Core_Auth_Process_AttributeAdd extends PHPUnit_Framework_TestCase
$result = self::processFilter($config, $request);
}
/**
* Test wrong attribute name
*
* @expectedException Exception
*/
public function testWrongAttributeName()
{
$config = array(
'%replace',
true => array('value2'),
);
$request = array(
'Attributes' => array(
'test' => array('value1'),
),
);
$result = self::processFilter($config, $request);
}
/**
* Test wrong attribute value
*
......
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