Skip to content
This repository was archived by the owner on Oct 22, 2025. It is now read-only.

Commit d38253f

Browse files
Add boostrap test
1 parent 1ef01dd commit d38253f

File tree

2 files changed

+13
-5
lines changed

2 files changed

+13
-5
lines changed

tests/Unit/BootstrapTest.php

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<?php
2+
3+
use Pavlusha311245\UnitPhpSdk\Unit;
4+
5+
const SOCKET = '/usr/local/var/run/unit/control.sock';
6+
const ADDRESS = 'http://localhost';
7+
8+
test('Can create unit object', function () {
9+
expect(new Unit(
10+
socket: SOCKET,
11+
address: ADDRESS
12+
))->toBeObject();
13+
});

tests/Unit/ExampleTest.php

Lines changed: 0 additions & 5 deletions
This file was deleted.

0 commit comments

Comments
 (0)