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

CommonTestClass::defaultJavaFileMime()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 2
eloc 1
c 1
b 0
f 0
nc 2
nop 0
dl 0
loc 3
rs 10
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