Completed
Push — master ( 0a7932...aee286 )
by Maksim
13s
created

NotResolvableExceptionTest   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2
Metric Value
dl 0
loc 16
wmc 2
lcom 0
cbo 2
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A testSubClassOfRuntimeException() 0 6 1
A testImplementsExceptionInterface() 0 6 1
1
<?php
2
3
namespace Liip\ImagineBundle\Tests\Exception\Imagine\Cache\Resolver;
4
5
use Liip\ImagineBundle\Exception\Imagine\Cache\Resolver\NotResolvableException;
6
7
/**
8
 * @covers Liip\ImagineBundle\Exception\Imagine\Cache\Resolver\NotResolvableException
9
 */
10
class NotResolvableExceptionTest extends \PHPUnit_Framework_TestCase
11
{
12
    public function testSubClassOfRuntimeException()
13
    {
14
        $e = new NotResolvableException();
15
16
        $this->assertInstanceOf('\RuntimeException', $e);
17
    }
18
19
    public function testImplementsExceptionInterface()
20
    {
21
        $e = new NotResolvableException();
22
23
        $this->assertInstanceOf('Liip\ImagineBundle\Exception\ExceptionInterface', $e);
24
    }
25
}
26