Test Failed
Push — master ( 475bfc...ca0e1d )
by Oss
05:46
created

BpmOnlineTest   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 27
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 3

Importance

Changes 0
Metric Value
wmc 2
lcom 1
cbo 3
dl 0
loc 27
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A setUp() 0 13 1
A tearDown() 0 4 1
1
<?php
2
3
namespace Test\Brownie\BpmOnline;
4
5
use Brownie\BpmOnline\BpmOnline;
6
use Brownie\BpmOnline\Config;
7
use Brownie\HttpClient\HttpClient;
8
use PHPUnit\Framework\TestCase;
9
10
class BpmOnlineTest extends TestCase
11
{
12
13
    /**
14
     * @var BpmOnline
15
     */
16
    private $bpmOnline;
17
18
    protected function setUp()
19
    {
20
        $httpClient = $this->prophesize(HttpClient::class);
21
22
        $config = $this->prophesize(Config::class);
23
24
25
26
        $this->bpmOnline = new BpmOnline(
27
            $httpClient->reveal(),
28
            $config->reveal()
29
        );
30
    }
31
32
    protected function tearDown()
33
    {
34
        $this->bpmOnline = null;
35
    }
36
}
37