Esempio n. 1
0
 function processEvent($event, $params)
 {
     $ldap = new MockLDAP();
     $ldap->setReturnValue('getLDAPParam', 'ldap://ldap.tuleap.com', array('server'));
     $ldap->setReturnValue('getLDAPParam', 'dc=tuleap,dc=com', array('dn'));
     $params['svn_apache_auth'] = new LDAP_SVN_Apache($ldap, $params['project_info']);
 }
Esempio n. 2
0
 private function GivenAnLDAPObject()
 {
     $ldap = new MockLDAP();
     $ldap->setReturnValue('getLDAPParam', 'dc=tuleap,dc=com', array('dn'));
     return $ldap;
 }