Completed
Push — master ( fd0858...d5ba90 )
by Andrii
29:08 queued 13:19
created

ReadmeGoalTest   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 0

Importance

Changes 2
Bugs 1 Features 0
Metric Value
wmc 4
c 2
b 1
f 0
lcom 1
cbo 0
dl 0
loc 26
rs 10

4 Methods

Rating   Name   Duplication   Size   Complexity  
A setUp() 0 4 1
A tearDown() 0 3 1
A testRenderH1() 0 4 1
A testRenderH2() 0 4 1
1
<?php
2
3
/*
4
 * README plugin for HiDev
5
 *
6
 * @link      https://github.com/hiqdev/hidev-readme
7
 * @package   hidev-readme
8
 * @license   BSD-3-Clause
9
 * @copyright Copyright (c) 2015, HiQDev (http://hiqdev.com/)
10
 */
11
12
namespace hidev\readme\tests\unit\goals;
13
14
use hidev\readme\goals\ReadmeGoal;
15
16
/**
17
 * Readme Goal test class.
18
 */
19
class ReadmeGoalTest extends \PHPUnit_Framework_TestCase
20
{
21
    /**
22
     * @var ReadmeGoal
23
     */
24
    protected $object;
25
26
    protected function setUp()
27
    {
28
        $this->object = new ReadmeGoal('README', null);
29
    }
30
31
    protected function tearDown()
32
    {
33
    }
34
35
    public function testRenderH1()
36
    {
37
        $this->assertSame("Test\n====\n", $this->object->renderH1('Test'));
38
    }
39
40
    public function testRenderH2()
41
    {
42
        $this->assertSame("Test\n----\n", $this->object->renderH2('Test'));
43
    }
44
}
45