Completed
Push — develop ( 2c75a2...3f95e8 )
by Adam
08:12
created

BuilderSpec   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A it_is_initializable() 0 4 1
A it_should_accept_user_credentials() 0 6 1
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