Passed
Push — master ( 1a6375...8f4058 )
by Petr
08:21 queued 05:12
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
<?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