Completed
Push — master ( e2d6bc...9b2ed5 )
by Vladimir
06:25 queued 01:00
created

Test   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 6
dl 0
loc 16
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A testIntegration() 0 3 1
A testCheck() 0 9 1
1
<?php
2
3
/**
4
 * This file is part of the `tvi/monitor-bundle` project.
5
 *
6
 * (c) https://github.com/turnaev/monitor-bundle/graphs/contributors
7
 *
8
 * For the full copyright and license information, please view the LICENSE.md
9
 * file that was distributed with this source code.
10
 */
0 ignored issues
show
Coding Style introduced by
PHP version not specified
Loading history...
Coding Style introduced by
Missing @category tag in file comment
Loading history...
Coding Style introduced by
Missing @package tag in file comment
Loading history...
Coding Style introduced by
Missing @author tag in file comment
Loading history...
Coding Style introduced by
Missing @license tag in file comment
Loading history...
Coding Style introduced by
Missing @link tag in file comment
Loading history...
11
12
namespace Tvi\MonitorBundle\Check\fs\YamlFile;
13
14
use Tvi\MonitorBundle\Check\CheckInterface;
15
use Tvi\MonitorBundle\Test\Check\CheckTestCase;
16
use ZendDiagnostics\Result\ResultInterface;
17
18
/**
0 ignored issues
show
Coding Style introduced by
Missing short description in doc comment
Loading history...
19
 * @author Vladimir Turnaev <[email protected]>
20
 */
0 ignored issues
show
Coding Style introduced by
Missing @category tag in class comment
Loading history...
Coding Style introduced by
Missing @package tag in class comment
Loading history...
Coding Style introduced by
Missing @license tag in class comment
Loading history...
Coding Style introduced by
Missing @link tag in class comment
Loading history...
21
class Test extends CheckTestCase
22
{
23
    public function testIntegration()
0 ignored issues
show
Coding Style introduced by
Missing doc comment for function testIntegration()
Loading history...
24
    {
25
        $this->iterateConfTest(__DIR__.'/config.example.yml');
26
    }
27
28
    public function testCheck()
0 ignored issues
show
Coding Style introduced by
Missing doc comment for function testCheck()
Loading history...
29
    {
30
31
32
        $check1 = new
33
        Check('/tmp/test.yml');
34
35
        $this->assertInstanceOf(CheckInterface::class, $check1);
36
        $this->assertInstanceOf(ResultInterface::class, $check1->check());
37
    }
38
}
39