/** * @param mixed $value * @return string|null */ private static function _valueToLdap($value) { return Zend_Ldap_Converter::toLdap($value); }
/** * @dataProvider toLdapProvider */ public function testToLdap($expect, $convert) { $this->assertEquals($expect, Zend_Ldap_Converter::toLdap($convert['value'], $convert['type'])); }