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

RendererTest::testRender()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 8
rs 9.4285
cc 1
eloc 6
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
class RendererTest extends \PHPUnit_Framework_TestCase
18
{
19
    /**
20
     * @var MarkdownRenderer
21
     */
22
    protected $object;
23
24
    protected function setUp()
25
    {
26
        $this->object = new MarkdownRenderer();
27
    }
28
29
    protected function tearDown()
30
    {
31
    }
32
33
    public function testRender()
34
    {
35
        $path = __DIR__ . '/minimal.md';
36
        $parser = new MarkdownParser();
37
        $history = $parser->parsePath($path);
38
        $text = $this->object->render($history);
39
        $this->assertEquals(file_get_contents($path), $text);
40
    }
41
}
42