function it_should_mask_passwords_and_binary_data_in_a_ldap_batch_array()
{
$batch = [["attrib" => "unicodePwd", "modtype" => LDAP_MODIFY_BATCH_REMOVE, "values" => ["password"]], ["attrib" => "userPassword", "modtype" => LDAP_MODIFY_BATCH_ADD, "values" => ["correct horse battery staple"]], ["attrib" => "givenName", "modtype" => LDAP_MODIFY_BATCH_REPLACE, "values" => ["Jack"]], ["attrib" => "userParameters", "modtype" => LDAP_MODIFY_BATCH_REPLACE, "values" => [hex2bin('f0ba44')]]];
$masked = $batch;
$masked[0]['values'] = [LdapUtilities::MASK_PASSWORD];
$masked[1]['values'] = [LdapUtilities::MASK_PASSWORD];
$masked[3]['values'] = [LdapUtilities::MASK_BINARY];
$this::sanitizeBatchArray($batch)->shouldBeEqualTo($masked);
}