Completed
Pull Request — master (#6)
by Tomasz
01:42
created

FormatContainerTest   A

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\Exception\FormatAliasTypeException;
5
use Thunder\Serializard\Format\ArrayFormat;
6
use Thunder\Serializard\FormatContainer\FormatContainer;
7
8
/**
9
 * @author Tomasz Kowalczyk <[email protected]>
10
 */
11
final class FormatContainerTest extends AbstractTestCase
12
{
13
    public function testExceptionOnInvalidFormatAlias()
14
    {
15
        $formats = new FormatContainer();
16
        $this->expectExceptionClass(FormatAliasTypeException::class);
17
        $formats->add(new \stdClass(), new ArrayFormat());
18
    }
19
}
20