Completed
Push — master ( c32bd7...f916e0 )
by Hannes
02:12
created

ReadmeTestCase   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 2
A assertReadme() 0 4 1
1
<?php
2
3
namespace hanneskod\readmetester\PHPUnit;
4
5
class ReadmeTestCase extends \PHPUnit_Framework_TestCase
6
{
7
    /**
8
     * @var AssertReadme
9
     */
10
    private $asserter;
11
12
    public function __construct(AssertReadme $asserter = null)
13
    {
14
        $this->asserter = $asserter ?: new AssertReadme($this);
15
    }
16
17
    public function assertReadme($filename, $formatIdentifier = '')
18
    {
19
        return $this->asserter->assertReadme($filename, $formatIdentifier);
20
    }
21
}
22