GithubPullRequestConverterSpec::let()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 5
rs 9.4285
cc 1
eloc 3
nc 1
nop 2
1
<?php
2
3
namespace spec\DevBoardLib\GithubObjectApiFacade\Repo\PullRequest\Converter;
4
5
use DevBoardLib\GithubCore\Repo\GithubRepo;
6
use DevBoardLib\GithubCore\Repo\GithubRepoId;
7
use PhpSpec\ObjectBehavior;
8
use Prophecy\Argument;
9
10
class GithubPullRequestConverterSpec extends ObjectBehavior
11
{
12
    public function it_is_initializable()
13
    {
14
        $this->shouldHaveType(
15
            'DevBoardLib\GithubObjectApiFacade\Repo\PullRequest\Converter\GithubPullRequestConverter'
16
        );
17
    }
18
19
    public function let(GithubRepo $githubRepo, GithubRepoId $repoId)
20
    {
21
        $githubRepo->getId()->willReturn($repoId);
22
        $this->beConstructedWith($githubRepo);
23
    }
24
}
25