TestOfSecond   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 3
eloc 11
dl 0
loc 25
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A testPrevDay_Array() 0 10 1
A setUp() 0 3 1
1
<?php
2
3
require_once __DIR__ . '/simple_include.php';
4
require_once __DIR__ . '/calendar_include.php';
5
6
require_once __DIR__ . '/./calendar_test.php';
7
8
/**
9
 * Class TestOfSecond.
10
 */
11
class TestOfSecond extends TestOfCalendar
12
{
13
    /**
14
     * TestOfSecond constructor.
15
     */
16
    public function __construct()
17
    {
18
        $this->UnitTestCase('Test of Second');
19
    }
20
21
    public function setUp()
22
    {
23
        $this->cal = new Calendar_Second(2003, 10, 25, 13, 32, 43);
24
    }
25
26
    public function testPrevDay_Array()
27
    {
28
        $this->assertEqual([
29
                               'year'   => 2003,
30
                               'month'  => 10,
31
                               'day'    => 24,
32
                               'hour'   => 0,
33
                               'minute' => 0,
34
                               'second' => 0,
35
                           ], $this->cal->prevDay('array'));
36
    }
37
}
38
39
if (!defined('TEST_RUNNING')) {
40
    define('TEST_RUNNING', true);
41
    $test = new TestOfSecond();
42
    $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...
43
}
44