Completed
Push — master ( 99411a...99411a )
by Hugo
30s queued 10s
created

WannaSpeakSpec::let()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 3
1
<?php
2
3
declare(strict_types=1);
4
5
namespace spec\Yproximite\WannaSpeakBundle;
6
7
use PhpSpec\ObjectBehavior;
8
use Yproximite\WannaSpeakBundle\Api\CallTrackingsInterface;
9
use Yproximite\WannaSpeakBundle\Api\SoundsInterface;
10
use Yproximite\WannaSpeakBundle\Api\StatisticsInterface;
11
use Yproximite\WannaSpeakBundle\WannaSpeak;
12
13
class WannaSpeakSpec extends ObjectBehavior
14
{
15
    public function it_is_initializable(): void
16
    {
17
        $this->shouldHaveType(WannaSpeak::class);
18
    }
19
20
    public function let(CallTrackingsInterface $callTrackings, SoundsInterface $sounds, StatisticsInterface $statistics): void
21
    {
22
        $this->beConstructedWith($callTrackings, $sounds, $statistics);
23
    }
24
25
    public function it_should_provide_multiple_apis(CallTrackingsInterface $callTrackings, SoundsInterface $sounds, StatisticsInterface $statistics): void
26
    {
27
        $this->callTrackings()->shouldBe($callTrackings);
28
        $this->sounds()->shouldBe($sounds);
29
        $this->statistics()->shouldBe($statistics);
30
    }
31
}
32