Completed
Pull Request — master (#261)
by Sam
03:45 queued 01:02
created

SubjectUnderTestSpec   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2
Metric Value
wmc 1
lcom 0
cbo 2
dl 0
loc 8
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A it_calls_something_on_its_dependency() 0 5 1
1
<?php
2
namespace spec\ProphecyTest\Examples;
3
4
use PhpSpec\ObjectBehavior;
5
use ProphecyTest\Examples\CollaboratorWithReturnTypehinting;
6
7
class SubjectUnderTestSpec extends ObjectBehavior
8
{
9
    function it_calls_something_on_its_dependency(CollaboratorWithReturnTypehinting $collaboratorWithReturnTypehinting)
10
    {
11
        $this->getAnIntFromThisThing($collaboratorWithReturnTypehinting);
12
        $collaboratorWithReturnTypehinting->getAnInt()->shouldHaveBeenCalled();
13
    }
14
}
15