public function testSlapdAddAttributesException() { $this->setExpectedException('SHLdapException', 'LIB_SHLDAP_ERR_10171', 10171); $ldap = new SHLdap(TestsHelper::getLdapConfig(214)); $ldap->connect(); $ldap->proxyBind(); $user = TestsHelper::getUserCreds('trinity'); // Try to add an attribute that doesnt exist $this->assertTrue($ldap->addAttributes($user['dn'], array('attributedoesntexist' => array('asdasdas')))); }