public function test_with_correct_attribute_list_and_username() { try { $shibbolethConfigurationParameter = new shibbolethConfigurationParameter(); $userAttributes = $shibbolethConfigurationParameter->getUserAttributes(); $this->assertTrue(is_array($userAttributes)); $this->assertTrue(count($userAttributes) > 0); foreach ($userAttributes as $key => $value) { echo "key = {$key}, value = {$value}\n"; } } catch (Exception $unexpected) { $this->fail('Unexpected Exception has been raised!'); } }
/** * Test a successful configuration. * * @return void * @access public */ public function testWithCorrectAttributeListAndUsername() { try { $shibConfigParam = new shibbolethConfigurationParameter($this->_pathToTestConfigurationFiles . "/authn/shib/good-config.ini"); $userAttributes = $shibConfigParam->getUserAttributes(); $this->assertTrue(is_array($userAttributes)); $this->assertTrue(count($userAttributes) > 0); foreach ($userAttributes as $key => $value) { //echo "key = {$key}, value = {$value}\n"; } } catch (Exception $unexpected) { $this->fail('Unexpected Exception has been raised!'); } }