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.

Code Duplication    Length = 30-30 lines in 2 locations

tests/src/Evaluator/WeekdayTest.php 1 location

@@ 12-41 (lines=30) @@
9
 * @author Kristjan Siimson <[email protected]>
10
 * @package Evaluator\Tests
11
 */
12
class WeekdayTest extends \PHPUnit_Framework_TestCase
13
{
14
    /**
15
     * @dataProvider weekdayProvider
16
     * @param string $date
17
     * @param int $dayOfWeek
18
     * @param bool $result
19
     */
20
    public function testEvaluateDayOfWeek($date, $dayOfWeek, $result)
21
    {
22
        $evaluator = new Weekday($dayOfWeek);
23
        $this->assertEquals($result, $evaluator->is($date));
24
    }
25
26
    /**
27
     * @return array
28
     */
29
    public function weekdayProvider()
30
    {
31
        return array(
32
            array('2015-01-26', DayOfWeek::MONDAY, true),
33
            array('2015-01-27', DayOfWeek::TUESDAY, true),
34
            array('2015-01-28', DayOfWeek::WEDNESDAY, true),
35
            array('2015-01-29', DayOfWeek::THURSDAY, true),
36
            array('2015-01-30', DayOfWeek::FRIDAY, true),
37
            array('2015-01-31', DayOfWeek::SATURDAY, false),
38
            array('2015-02-01', DayOfWeek::SUNDAY, false),
39
        );
40
    }
41
}
42

tests/src/Evaluator/WeekendTest.php 1 location

@@ 12-41 (lines=30) @@
9
 * @author Kristjan Siimson <[email protected]>
10
 * @package Evaluator\Tests
11
 */
12
class WeekendTest extends \PHPUnit_Framework_TestCase
13
{
14
    /**
15
     * @dataProvider weekendProvider
16
     * @param string $date
17
     * @param int $dayOfWeek
18
     * @param bool $result
19
     */
20
    public function testEvaluateDayOfWeek($date, $dayOfWeek, $result)
21
    {
22
        $evaluator = new Weekend($dayOfWeek);
23
        $this->assertEquals($result, $evaluator->is($date));
24
    }
25
26
    /**
27
     * @return array
28
     */
29
    public function weekendProvider()
30
    {
31
        return array(
32
            array('2015-01-26', DayOfWeek::MONDAY, false),
33
            array('2015-01-27', DayOfWeek::TUESDAY, false),
34
            array('2015-01-28', DayOfWeek::WEDNESDAY, false),
35
            array('2015-01-29', DayOfWeek::THURSDAY, false),
36
            array('2015-01-30', DayOfWeek::FRIDAY, false),
37
            array('2015-01-31', DayOfWeek::SATURDAY, true),
38
            array('2015-02-01', DayOfWeek::SUNDAY, true),
39
        );
40
    }
41
}
42