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']); }
private function GivenAnLDAPObject() { $ldap = new MockLDAP(); $ldap->setReturnValue('getLDAPParam', 'dc=tuleap,dc=com', array('dn')); return $ldap; }