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

InteractionComponentNormalizerSpec   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 4
lcom 0
cbo 1
dl 0
loc 22
ccs 0
cts 16
cp 0
rs 10
c 0
b 0
f 0

4 Methods

Rating   Name   Duplication   Size   Complexity  
A it_is_a_normalizer() 0 4 1
A it_supports_normalizing_interaction_component_objects() 0 4 1
A it_is_a_denormalizer() 0 4 1
A it_supports_denormalizing_to_interaction_component_objects() 0 4 1
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