Skip to content

Commit 50b8317

Browse files
Add tests
1 parent 80240e7 commit 50b8317

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

tests/Unit/BootstrapTest.php

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,20 @@
1111
address: ADDRESS
1212
))->toBeObject();
1313
});
14+
15+
$unit = new Unit(
16+
socket: SOCKET,
17+
address: ADDRESS
18+
);
19+
20+
test('Can receive config', function () use ($unit) {
21+
expect($unit->getConfig())->toBeObject('received object');
22+
});
23+
24+
test('Can receive statistics', function () use ($unit) {
25+
expect($unit->getStatistics())->toBeObject('received object');
26+
});
27+
28+
test('Can receive certificates', function () use ($unit) {
29+
expect($unit->getCertificates())->toBeArray('received array');
30+
});

0 commit comments

Comments
 (0)