FlagbitCurrencyExtensionTest::getFixturesDir()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
namespace Flagbit\Bundle\CurrencyBundle\Tests\Twig;
4
5
use Flagbit\Bundle\CurrencyBundle\Service\Currency;
6
use Flagbit\Bundle\CurrencyBundle\Twig\FlagbitCurrencyExtension;
7
use Symfony\Component\Intl\Intl;
8
use Twig_Test_IntegrationTestCase;
9
10
class FlagbitCurrencyExtensionTest extends Twig_Test_IntegrationTestCase
11
{
12
    public function getExtensions()
13
    {
14
        return [
15
            new FlagbitCurrencyExtension(new Currency(Intl::getCurrencyBundle(), 'EUR')),
16
        ];
17
    }
18
19
    public function getFixturesDir()
20
    {
21
        return __DIR__ . '/Fixtures/';
22
    }
23
}
24