public function testCoreExplodeDnWithMultiValuedRdn() { $dn = 'cn=name1+uid=user,cn=name2,dc=example,dc=org'; $k = array(); $v = array(); $this->assertTrue(LDAP\DN::checkDn($dn, $k, $v)); $ke = array(array('cn', 'uid'), 'cn', 'dc', 'dc'); $ve = array(array('name1', 'user'), 'name2', 'example', 'org'); $this->assertEquals($ke, $k); $this->assertEquals($ve, $v); $dn = 'cn=name11+cn=name12,cn=name2,dc=example,dc=org'; $this->assertFalse(LDAP\DN::checkDn($dn)); $dn = 'CN=name11+Cn=name12,cn=name2,dc=example,dc=org'; $this->assertFalse(LDAP\DN::checkDn($dn)); }