Passed
Push — master ( 2ac8f3...446e83 )
by Vladimir
06:17
created

Test   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 2
eloc 5
dl 0
loc 12
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A test_check() 0 5 1
A test_plugin() 0 3 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\etcd\Etcd;
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
 *
21
 * @internal
22
 */
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...
23
class Test extends CheckTestCase
24
{
25
    public function test_plugin()
0 ignored issues
show
Coding Style introduced by
Missing doc comment for function test_plugin()
Loading history...
Coding Style introduced by
Public method name "Test::test_plugin" is not in camel caps format
Loading history...
26
    {
27
        $this->iterateConfTest(__DIR__.'/config.example.yml');
28
    }
29
30
    public function test_check()
0 ignored issues
show
Coding Style introduced by
Missing doc comment for function test_check()
Loading history...
Coding Style introduced by
Public method name "Test::test_check" is not in camel caps format
Loading history...
31
    {
32
        $check = new Check();
33
        $this->assertInstanceOf(CheckInterface::class, $check);
34
        $this->assertInstanceOf(ResultInterface::class, $check->check());
35
    }
36
}
37