Completed
Push — master ( 4534a2...4c3ec3 )
by Johannes
03:54
created

MarkdownDocumentTest   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Importance

Changes 0
Metric Value
wmc 3
lcom 1
cbo 2
dl 0
loc 22
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A setUp() 0 7 1
A testGetParams() 0 4 1
A testGetContent() 0 4 1
1
<?php
2
/**
3
 * Lichtenwallner  (https://lichtenwallner.at)
4
 *
5
 * @see https://github.com/jolicht/markdown-cms for the canonical source repository
6
 * @license https://github.com/jolicht/markdown-cms/blob/master/LICENSE MIT
7
 * @copyright Copyright (c) Johannes Lichtenwallner
8
 */
9
declare(strict_types = 1);
10
namespace JolichtTest\MarkdownCms\Markdown;
11
12
use PHPUnit\Framework\TestCase;
13
use Jolicht\MarkdownCms\Markdown\MarkdownDocument;
14
15
class MarkdownDocumentTest extends TestCase
16
{
17
    private $document, $params;
0 ignored issues
show
Coding Style introduced by
It is generally advisable to only define one property per statement.

Only declaring a single property per statement allows you to later on add doc comments more easily.

It is also recommended by PSR2, so it is a common style that many people expect.

Loading history...
18
19
    protected function setUp()
20
    {
21
        $this->params = [
22
            'id' => 'testId'
23
        ];
24
        $this->document = new MarkdownDocument($this->params, 'testContent');
25
    }
26
27
    public function testGetParams()
28
    {
29
        $this->assertSame($this->params, $this->document->getParams());
30
    }
31
32
    public function testGetContent()
33
    {
34
        $this->assertSame('testContent', $this->document->getContent());
35
    }
36
}