Completed
Push — master ( 218e95...e3a73f )
by dan
02:12
created

FormatterTestCase   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A setUp() 0 8 1
A setTwigTemplatesDirectory() 0 5 1
1
<?php
2
3
namespace IrishDan\NotificationBundle\Test\Formatter;
4
5
use IrishDan\NotificationBundle\Test\NotificationTestCase;
6
7
abstract class FormatterTestCase extends NotificationTestCase
8
{
9
    protected $notification;
10
11
    public function setUp()
12
    {
13
        parent::setUp();
14
15
        $this->setTwigTemplatesDirectory();
16
17
        $this->notification = $this->getNotificationWithUser();
18
    }
19
20
    protected function setTwigTemplatesDirectory()
21
    {
22
        $path = __DIR__ . '/../Resources/';
23
        $this->getService('twig.loader')->addPath($path, $namespace = '__main__');
24
    }
25
}