PathExceptionTest   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 2
dl 0
loc 12
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A test() 0 6 1
1
<?php
2
3
namespace Evheniy\HTML5CacheBundle\Test\Exception;
4
5
use Evheniy\HTML5CacheBundle\Exception\PathException;
6
use PHPUnit\Framework\TestCase;
7
8
/**
9
 * Class PathExceptionTest
10
 *
11
 * @package Evheniy\HTML5CacheBundle\Test\Exception
12
 */
13
class PathExceptionTest extends TestCase
14
{
15
    /**
16
     * @throws PathException
17
     */
18
    public function test()
19
    {
20
        $this->assertInstanceOf('\Exception', new PathException());
21
        $this->expectException(\Evheniy\HTML5CacheBundle\Exception\PathException::class);
22
        throw new PathException('test');
23
    }
24
}