FormatContainerTest   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 3
dl 0
loc 9
c 0
b 0
f 0
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A testExceptionOnInvalidFormatAlias() 0 6 1
1
<?php
2
namespace Thunder\Serializard\Tests;
3
4
use Thunder\Serializard\Format\ArrayFormat;
5
use Thunder\Serializard\FormatContainer\FormatContainer;
6
7
/**
8
 * @author Tomasz Kowalczyk <[email protected]>
9
 */
10
final class FormatContainerTest extends AbstractTestCase
11
{
12
    public function testExceptionOnInvalidFormatAlias()
13
    {
14
        $formats = new FormatContainer();
15
        $this->expectExceptionClass(\InvalidArgumentException::class);
16
        $formats->add(new \stdClass(), new ArrayFormat());
17
    }
18
}
19