File tree Expand file tree Collapse file tree 1 file changed +37
-0
lines changed
tests/integration/FreeDSx/Ldap/Sync Expand file tree Collapse file tree 1 file changed +37
-0
lines changed Original file line number Diff line number Diff line change
1
+ <?php
2
+
3
+ declare (strict_types=1 );
4
+
5
+ /**
6
+ * This file is part of the FreeDSx LDAP package.
7
+ *
8
+ * (c) Chad Sikorra <[email protected] >
9
+ *
10
+ * For the full copyright and license information, please view the LICENSE
11
+ * file that was distributed with this source code.
12
+ */
13
+
14
+ namespace integration \FreeDSx \Ldap \Sync ;
15
+
16
+ use FreeDSx \Ldap \Sync \Result \SyncEntryResult ;
17
+ use integration \FreeDSx \Ldap \LdapTestCase ;
18
+
19
+ class SyncReplTest extends LdapTestCase
20
+ {
21
+ public function testItCanPerformPollingSync (): void
22
+ {
23
+ $ entries = [];
24
+
25
+ $ client = $ this ->getClient ();
26
+ $ this ->bindClient ($ client );
27
+
28
+ $ client
29
+ ->syncRepl ()
30
+ ->poll (fn (SyncEntryResult $ result ) => array_push ($ entries , $ result ));
31
+
32
+ $ this ->assertGreaterThan (
33
+ 0 ,
34
+ $ entries ,
35
+ );
36
+ }
37
+ }
You can’t perform that action at this time.
0 commit comments