GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

testIfInArrayThenIsHoliday()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 2
Bugs 1 Features 0
Metric Value
c 2
b 1
f 0
dl 0
loc 5
rs 9.4285
cc 1
eloc 3
nc 1
nop 0
1
<?php
2
3
namespace Tests\COG\ChronoShifter\Date;
4
5
use COG\ChronoShifter\HolidayProvider\ArrayHolidayProvider;
6
7
/**
8
 * @author Kristjan Siimson <[email protected]>
9
 * @package HolidayProvider\Test
10
 */
11
class ArrayHolidayProviderTest extends \PHPUnit_Framework_TestCase
12
{
13
    public function testIfInArrayThenIsHoliday()
14
    {
15
        $arrayHolidayProvider = new ArrayHolidayProvider(['2015-01-01']);
16
        $this->assertTrue($arrayHolidayProvider->isHoliday('2015-01-01'));
17
    }
18
19
    public function testIgnoreTime()
20
    {
21
        $arrayHolidayProvider = new ArrayHolidayProvider(['2015-01-01']);
22
        $this->assertTrue($arrayHolidayProvider->isHoliday('2015-01-01 12:15:00'));
23
    }
24
25
    public function testIfNotInArrayThenNotAHoliday()
26
    {
27
        $arrayHolidayProvider = new ArrayHolidayProvider(['2015-01-01']);
28
        $this->assertFalse($arrayHolidayProvider->isHoliday('2015-01-02'));
29
    }
30
}
31