testExceptionOnInvalidFormatAlias()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
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