Test Failed
Push — master ( dc6008...986ac7 )
by Michał
03:06
created

PhpUserAgentParserTest::setUp()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 9
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 2
eloc 4
nc 2
nop 0
dl 0
loc 9
rs 10
c 0
b 0
f 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Dziki\MonologSentryBundle\Tests\Unit\UserAgent;
6
7
use Dziki\MonologSentryBundle\UserAgent\PhpUserAgentParser;
8
9
class PhpUserAgentParserTest extends AbstractParserTest
10
{
11
    public function setUp()
12
    {
13
        if (!function_exists('parse_user_agent')) {
14
            $this->markTestSkipped(
15
                'Library "donatj/phpuseragentparser" not installed, skipped.'
16
            );
17
        }
18
19
        $this->setParser(new PhpUserAgentParser());
20
    }
21
}
22