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.
Passed
Push — master ( 07b164...660df5 )
by Kristjan
36s
created

WorkdayTest::testHolidayAndWeekendIsNotWorkday()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
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\Evaluator;
4
5
use COG\ChronoShifter\HolidayProvider\ArrayHolidayProvider;
6
use COG\ChronoShifter\Evaluator\Workday;
7
8
/**
9
 * @author Kristjan Siimson <[email protected]>
10
 * @package Evaluator\Tests
11
 */
12
class WorkdayTest extends \PHPUnit_Framework_TestCase
13
{
14
    public function testHolidayAndWeekdayIsNotWorkday()
15
    {
16
        $evaluator = new Workday(new ArrayHolidayProvider(array('2010-01-01')));
17
        $this->assertFalse($evaluator->is('2010-01-01'));
18
    }
19
20
    public function testHolidayAndWeekendIsNotWorkday()
21
    {
22
        $evaluator = new Workday(new ArrayHolidayProvider(array('2010-01-03')));
23
        $this->assertFalse($evaluator->is('2010-01-03'));
24
    }
25
26
    public function testNonHolidayAndWeekdayIsWorkday()
27
    {
28
        $evaluator = new Workday(new ArrayHolidayProvider(array('2010-01-03')));
29
        $this->assertTrue($evaluator->is('2010-01-01'));
30
    }
31
32
    public function testNonHolidayAndWeekendIsNotWorkday()
33
    {
34
        $evaluator = new Workday(new ArrayHolidayProvider(array('2010-01-01')));
35
        $this->assertFalse($evaluator->is('2010-01-03'));
36
    }
37
}
38