Passed
Push — master ( 884f37...9b78ff )
by Petr
02:21
created

CommonTestClass   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 5
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A defaultJavaFileMime() 0 3 2
1
<?php
2
3
use PHPUnit\Framework\TestCase;
4
5
6
/**
7
 * Class CommonTestClass
8
 * The structure for mocking and configuration seems so complicated, but it's necessary to let it be totally idiot-proof
9
 */
10
class CommonTestClass extends TestCase
11
{
12
    public function defaultJavaFileMime(): string
13
    {
14
        return (PHP_VERSION_ID >= 80300) ? 'text/x-java' : 'text/x-c';
15
    }
16
}
17