Completed
Push — master ( 246322...59f3c3 )
by Andrii
02:33
created

MarkdownRendererTest::setUp()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
/*
4
 * Changelog keeper
5
 *
6
 * @link      https://github.com/hiqdev/chkipper
7
 * @package   chkipper
8
 * @license   BSD-3-Clause
9
 * @copyright Copyright (c) 2016, HiQDev (http://hiqdev.com/)
10
 */
11
12
namespace hiqdev\chkipper\tests\functional;
13
14
use hiqdev\chkipper\history\MarkdownParser;
15
use hiqdev\chkipper\history\MarkdownRenderer;
16
17
/**
18
 * Markdown history renderer test case.
19
 *
20
 * @author Andrii Vasyliev <[email protected]>
21
 */
22
class MarkdownRendererTest extends \PHPUnit_Framework_TestCase
23
{
24
    /**
25
     * @var MarkdownRenderer
26
     */
27
    protected $object;
28
29
    protected function setUp()
30
    {
31
        $this->object = new MarkdownRenderer();
32
    }
33
34
    protected function tearDown()
35
    {
36
    }
37
38
    public function testRender()
39
    {
40
        $path = __DIR__ . '/minimal.md';
41
        $parser = new MarkdownParser();
42
        $history = $parser->parsePath($path);
43
        $text = $this->object->render($history);
44
        $this->assertEquals(file_get_contents($path), $text);
45
    }
46
}
47