Completed
Push — master ( beeeff...e349d6 )
by Christian
07:48 queued 05:00
created

it_is_a_denormalizer()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 0
cts 4
cp 0
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
crap 2
1
<?php
2
3
namespace spec\Xabbuh\XApi\Serializer\Normalizer;
4
5
use PhpSpec\ObjectBehavior;
6
use Xabbuh\XApi\Model\Interaction\InteractionComponent;
7
8
class InteractionComponentNormalizerSpec extends ObjectBehavior
9
{
10
    function it_is_a_normalizer()
11
    {
12
        $this->shouldHaveType('Symfony\Component\Serializer\Normalizer\NormalizerInterface');
13
    }
14
15
    function it_supports_normalizing_interaction_component_objects()
16
    {
17
        $this->supportsNormalization(new InteractionComponent('test'))->shouldReturn(true);
18
    }
19
20
    function it_is_a_denormalizer()
21
    {
22
        $this->shouldHaveType('Symfony\Component\Serializer\Normalizer\DenormalizerInterface');
23
    }
24
25
    function it_supports_denormalizing_to_interaction_component_objects()
26
    {
27
        $this->supportsDenormalization(array(), 'Xabbuh\XApi\Model\Interaction\InteractionComponent')->shouldReturn(true);
28
    }
29
}
30