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

PhpUserAgentParserTest   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A setUp() 0 9 2
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