Completed
Push — master ( 39e8a2...6136fb )
by Alex
02:27
created

LoaderExceptionTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A testLoaderException() 0 11 1
1
<?php
2
3
namespace Asmaster\EquipTwig\Tests\Exception;
4
5
use Asmaster\EquipTwig\Exception\LoaderException;
6
use PHPUnit_Framework_TestCase as TestCase;
7
use Twig_Error_Loader as TwigErrorLoader;
8
9
class LoaderExceptionTest extends TestCase
10
{
11
    public function testLoaderException()
12
    {
13
        $exception = LoaderException::notFound('test', '/templates');
14
15
        $this->assertInstanceOf(LoaderException::class, $exception);
16
        $this->assertInstanceOf(TwigErrorLoader::class, $exception);
17
        $this->assertSame(
18
            'Unable to find template `test` (looked into: /templates).',
19
            $exception->getMessage()
20
        );
21
    }
22
}
23