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

testExceptionOnInvalidFormatAlias()   A

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\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