Passed
Push — master ( 505a98...965270 )
by Vladimir
07:00
created

Test::test_plugin()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 1
dl 0
loc 3
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
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\rabbitmq\QueueSize;
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