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

it_calls_something_on_its_dependency()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %
Metric Value
dl 0
loc 5
rs 9.4285
cc 1
eloc 3
nc 1
nop 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