Completed
Branch develop (9f43d2)
by Filipe
05:14
created

ValueSpec::let()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
namespace spec\Slick\Di\Definition;
4
5
use Slick\Di\Definition\Value;
6
use PhpSpec\ObjectBehavior;
7
use Prophecy\Argument;
8
use Slick\Di\DefinitionInterface;
9
10
class ValueSpec extends ObjectBehavior
11
{
12
    function let()
13
    {
14
        $this->beConstructedWith('valueForKey');
15
    }
16
17
    function it_is_initializable()
18
    {
19
        $this->shouldHaveType(Value::class);
20
    }
21
22
    function its_a_definition()
23
    {
24
        $this->shouldHaveType(DefinitionInterface::class);
25
    }
26
27
    function it_returns_the_value_passed_in_the_constructor()
28
    {
29
        $this->resolve()->shouldReturn('valueForKey');
30
    }
31
}
32