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

testSubClassOfRuntimeException()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %
Metric Value
dl 0
loc 6
rs 9.4285
cc 1
eloc 3
nc 1
nop 0
1
<?php
2
3
namespace Liip\ImagineBundle\Tests\Exception\Imagine\Cache\Resolver;
4
5
use Liip\ImagineBundle\Exception\Imagine\Cache\Resolver\NotStorableException;
6
7
/**
8
 * @covers Liip\ImagineBundle\Exception\Imagine\Cache\Resolver\NotStorableException
9
 */
10
class NotStorableExceptionTest extends \PHPUnit_Framework_TestCase
11
{
12
    public function testSubClassOfRuntimeException()
13
    {
14
        $e = new NotStorableException();
15
16
        $this->assertInstanceOf('\RuntimeException', $e);
17
    }
18
19
    public function testImplementsExceptionInterface()
20
    {
21
        $e = new NotStorableException();
22
23
        $this->assertInstanceOf('Liip\ImagineBundle\Exception\ExceptionInterface', $e);
24
    }
25
}
26