ConverterResultTest   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 1
c 0
b 0
f 0
lcom 0
cbo 1
dl 0
loc 11
ccs 0
cts 7
cp 0
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A testConvertertResult() 0 8 1
1
<?php
2
3
/*
4
 * This file is part of the Yosymfony\Spress.
5
 *
6
 * (c) YoSymfony <http://github.com/yosymfony>
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 Yosymfony\Spress\Core\Tests\ContentManager\Converter;
13
14
use PHPUnit\Framework\TestCase;
15
use Yosymfony\Spress\Core\ContentManager\Converter\ConverterResult;
16
17
class ConverterResultTest extends TestCase
18
{
19
    public function testConvertertResult()
20
    {
21
        $result = new ConverterResult('My text', 'md', 'html');
22
23
        $this->assertEquals('My text', $result->getResult());
24
        $this->assertEquals('md', $result->getInputExtension());
25
        $this->assertEquals('html', $result->getExtension());
26
    }
27
}
28