Test Failed
Push — main ( 4e5202...c3e146 )
by Dylan
02:21
created

ClientTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 4
c 1
b 0
f 0
dl 0
loc 11
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A testConstruct() 0 5 1
1
<?php
2
3
namespace Lifeboat\Tests;
4
5
use Lifeboat\Client;
6
use Lifeboat\Exceptions\InvalidArgumentException;
7
8
class ClientTest extends Connector {
9
10
    /**
11
     * @test
12
     * @covers \Lifeboat\Client::__construct
13
     */
14
    public function testConstruct()
15
    {
16
        $this->assertInstanceOf(Client::class, new Client('mock', 'mock'));
17
        $this->expectException(InvalidArgumentException::class);
18
        new Client('', '');
19
    }
20
21
}
22