-
-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathRESTClientTest.php
More file actions
41 lines (36 loc) · 894 Bytes
/
RESTClientTest.php
File metadata and controls
41 lines (36 loc) · 894 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<?php
namespace Rubix\Server\Tests;
use Rubix\Server\RESTClient;
use Rubix\Server\Client;
use Rubix\Server\AsyncClient;
use Rubix\Server\HTTP\Middleware\Client\SharedTokenAuthenticator;
use PHPUnit\Framework\TestCase;
/**
* @group Clients
* @covers \Rubix\Server\RESTClient
*/
class RESTClientTest extends TestCase
{
/**
* @var \Rubix\Server\RESTClient
*/
protected $client;
/**
* @before
*/
protected function setUp() : void
{
$this->client = new RESTClient('127.0.0.1', 8888, false, [
new SharedTokenAuthenticator('secret'),
], 0.0);
}
/**
* @test
*/
public function build() : void
{
$this->assertInstanceOf(RESTClient::class, $this->client);
$this->assertInstanceOf(Client::class, $this->client);
$this->assertInstanceOf(AsyncClient::class, $this->client);
}
}