Completed
Pull Request — master (#8)
by Miro
03:40
created

GithubPullRequestConverterSpec   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A it_is_initializable() 0 6 1
A let() 0 5 1
1
<?php
2
namespace spec\DevBoardLib\GithubObjectApiFacade\Repo\PullRequest\Converter;
3
4
use DevBoardLib\GithubCore\Repo\GithubRepo;
5
use DevBoardLib\GithubCore\Repo\GithubRepoId;
6
use PhpSpec\ObjectBehavior;
7
use Prophecy\Argument;
8
9
class GithubPullRequestConverterSpec extends ObjectBehavior
10
{
11
    public function it_is_initializable()
12
    {
13
        $this->shouldHaveType(
14
            'DevBoardLib\GithubObjectApiFacade\Repo\PullRequest\Converter\GithubPullRequestConverter'
15
        );
16
    }
17
18
    public function let(GithubRepo $githubRepo, GithubRepoId $repoId)
19
    {
20
        $githubRepo->getId()->willReturn($repoId);
21
        $this->beConstructedWith($githubRepo);
22
    }
23
}
24