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

BuilderSpec::it_should_accept_user_credentials()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 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