PathExceptionTest::test()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

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