CommonTestClass   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 5
Duplicated Lines 0 %

Importance

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

1 Method

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