Completed
Push — develop ( 2d2214...2a74ad )
by Adam
02:43
created

BuilderSpec   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 2
eloc 5
dl 0
loc 12
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace spec\IBM\Watson\Common\HttpClient;
4
5
use IBM\Watson\Common\HttpClient\Builder;
6
use PhpSpec\ObjectBehavior;
7
use Prophecy\Argument;
8
9
class BuilderSpec extends ObjectBehavior
10
{
11
    public function it_is_initializable()
12
    {
13
        $this->shouldHaveType(Builder::class);
14
    }
15
16
    public function it_should_accept_user_credentials()
17
    {
18
        $this->withCredentials('username', 'password')->shouldReturn($this);
19
        $this->withUsername('username')->shouldReturn($this);
20
        $this->withPassword('password')->shouldReturn($this);
21
    }
22
}
23