Completed
Push — master ( 269a50...019c60 )
by Tobias
04:32
created

SourceLocationContainerExtractorTest::testExtract()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 5

Duplication

Lines 8
Ratio 100 %

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 8
loc 8
rs 9.4285
cc 1
eloc 5
nc 1
nop 0
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\SourceLocationContainerVisitor;
15
use Translation\Extractor\Tests\Resources;
16
17
/**
18
 * @author Tobias Nyholm <[email protected]>
19
 */
20
final class SourceLocationContainerExtractorTest extends BasePHPVisitorTest
21
{
22
    public function testExtract()
23
    {
24
        $collection = $this->getSourceLocations(new SourceLocationContainerVisitor(), Resources\Php\SourceLocationContainer::class);
25
26
        $this->assertCount(2, $collection);
27
        $source = $collection->first();
28
        $this->assertEquals('foo', $source->getMessage());
29
    }
30
}
31