$this->
markTestSkipped('Test LDAP server does not support pagination'
);
} $this->
destroyEntries($ldap,
$entries);
} private function setupTestUsers($ldap) { $entries =
[];
// Create 25 'users' that we'll query for in different page sizes
$em =
$ldap->
getEntryManager();
for ($i = 0;
$i < 25; ++
$i) { $cn =
sprintf('user%d',
$i);
$entry =
new Entry(sprintf('cn=%s,dc=symfony,dc=com',
$cn));
$entry->
setAttribute('objectClass',
['applicationProcess'
]);
$entry->
setAttribute('cn',
[$cn]);
try { $em->
add($entry);
} catch (LdapException
$exc) { // ignored
} $entries[] =
$entry;
}