Passed
Push — master ( 2084ff...487134 )
by Vladimir
04:34
created

Test   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Importance

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

2 Methods

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