Completed
Push — master ( 297644...c0860f )
by Vladimir
17:59 queued 13:47
created

Test::testCheck()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 3
nc 1
nop 0
dl 0
loc 6
rs 10
c 0
b 0
f 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\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
        $check = new a Check('/tmp/test.yml');
0 ignored issues
show
Bug introduced by
A parse error occurred: Syntax error, unexpected T_STRING on line 30 at column 23
Loading history...
31
32
        $this->assertInstanceOf(CheckInterface::class, $check);
33
        $this->assertInstanceOf(ResultInterface::class, $check->check());
34
    }
35
}
36