Completed
Push — master ( e82f42...e87d40 )
by Tobias
02:31
created

testExtract()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 5

Duplication

Lines 8
Ratio 100 %

Code Coverage

Tests 6
CRAP Score 1

Importance

Changes 0
Metric Value
dl 8
loc 8
c 0
b 0
f 0
ccs 6
cts 6
cp 1
rs 9.4285
cc 1
eloc 5
nc 1
nop 0
crap 1
1
<?php
2
3
/*
4
 * This file is part of the PHP Translation package.
5
 *
6
 * (c) PHP Translation team <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace Translation\Extractor\Tests\Functional\Visitor\Php;
13
14
use Translation\Extractor\Visitor\Php\SourceLocationContainerExtractor;
15
use Translation\Extractor\Tests\Resources;
16
17 View Code Duplication
class SourceLocationContainerExtractorTest extends BasePHPVisitorTest
0 ignored issues
show
Duplication introduced by
This class seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
18
{
19 1
    public function testExtract()
20
    {
21 1
        $collection = $this->getSourceLocations(new SourceLocationContainerExtractor(), Resources\Php\SourceLocationContainer::class);
22
23 1
        $this->assertCount(2, $collection);
24 1
        $source = $collection->first();
25 1
        $this->assertEquals('foo', $source->getMessage());
26 1
    }
27
}
28