Completed
Pull Request — master (#68)
by Raúl
02:34 queued 01:11
created

AbstractFixtureTest::setUp()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
namespace Sepia\Test;
4
5
use PHPUnit\Framework\TestCase;
6
use Sepia\PoParser\Parser;
7
8
abstract class AbstractFixtureTest extends TestCase
9
{
10
    /** @var string */
11
    protected $resourcesPath;
12
13
    public function setUp()
14
    {
15
        $this->resourcesPath = __DIR__.'/pofiles/';
16
    }
17
18
    /**
19
     * @param string $file
20
     *
21
     * @return \Sepia\PoParser\Catalog
22
     * @throws \Exception
23
     */
24
    protected function parseFile($file)
25
    {
26
        return Parser::parseFile($this->resourcesPath.$file);
27
    }
28
}
29