CalendarTabularTests::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 4
dl 0
loc 6
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
require_once __DIR__ . '/simple_include.php';
4
require_once __DIR__ . '/calendar_include.php';
5
6
/**
7
 * Class CalendarTabularTests.
8
 */
9
class CalendarTabularTests extends GroupTest
0 ignored issues
show
Bug introduced by
The type GroupTest was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
10
{
11
    /**
12
     * CalendarTabularTests constructor.
13
     */
14
    public function __construct()
15
    {
16
        parent::__construct('Calendar Tabular Tests');
17
        $this->addTestFile('month_weekdays_test.php');
18
        $this->addTestFile('month_weeks_test.php');
19
        $this->addTestFile('week_test.php');
20
        //$this->addTestFile('week_firstday_0_test.php'); //switch with the above
21
    }
22
}
23
24
if (!defined('TEST_RUNNING')) {
25
    define('TEST_RUNNING', true);
26
    $test = new CalendarTabularTests();
27
    $test->run(new HtmlReporter());
0 ignored issues
show
Bug introduced by
The type HtmlReporter was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
28
}
29