Completed
Pull Request — master (#5)
by
unknown
05:31
created

GermanyTest::getCorpusChristiTestData()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
/*
4
 * This file is part of the Holiday Library.
5
 *
6
 * (c) Michał Mańko <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE.md
9
 * file that was distributed with this source code.
10
 */
11
12
namespace Michalmanko\Holiday\Test\Provider;
13
14
use Michalmanko\Holiday\Holiday;
15
16
/**
17
 * @author ottowayne <[email protected]>
18
 */
19
class GermanyTest extends AbstractTestProvider
20
{
21
    public function getProviderCountryCode()
22
    {
23
        return 'GER';
24
    }
25
26
    public function getProviderCountryName()
27
    {
28
        return 'Germany';
29
    }
30
31
    public function getProviderInstanceOf()
32
    {
33
        return '\\Michalmanko\\Holiday\\Provider\\Germany';
34
    }
35
36
    public function dataProvider()
37
    {
38
        return array(
39
            ['Neujahr', Holiday::TYPE_HOLIDAY, array('2015-01-01', '2020-01-01')],
40
            ['Karfreitag', Holiday::TYPE_HOLIDAY, array('2015-04-03', '2020-04-10')],
41
            ['Ostermontag', Holiday::TYPE_HOLIDAY, array('2015-04-06', '2020-04-13')],
42
            ['Christi Himmelfahrt', Holiday::TYPE_HOLIDAY, array('2015-05-14', '2020-05-21', '2025-05-29')],
43
            ['Erster Mai', Holiday::TYPE_HOLIDAY, array('2015-05-01', '2020-05-01', '2025-05-01')],
44
            ['Pfingstmontag', Holiday::TYPE_HOLIDAY, array('2015-05-25', '2020-06-01', '2025-06-09')],
45
            ['Tag der Deutschen Einheit', Holiday::TYPE_HOLIDAY, array('2015-10-03', '2020-10-03', '2025-10-03')],
46
            ['Reformationstag', Holiday::TYPE_HOLIDAY, array('2017-10-31')],
47
            ['1. Weihnachtstag', Holiday::TYPE_HOLIDAY, array('2015-12-25', '2020-12-25')],
48
            ['2. Weihnachtstag', Holiday::TYPE_HOLIDAY, array('2015-12-26', '2020-12-26')],
49
        );
50
    }
51
52
    public function getEasterSundayTestData()
53
    {
54
        return ['Ostersonntag', Holiday::TYPE_HOLIDAY, array('2015-04-05', '2020-04-12')];
55
    }
56
57
    public function getPentecostSundayTestData()
58
    {
59
        return ['Pfingstsonntag', Holiday::TYPE_HOLIDAY, array('2015-05-24', '2020-05-31')];
60
    }
61
62
    public function getReformationTestData()
63
    {
64
        return ['Reformationstag', Holiday::TYPE_HOLIDAY, array('2015-10-31', '2020-10-31')];
65
    }
66
67
    public function getEpiphanyTestData()
68
    {
69
        return ['Heilige Drei Könige', Holiday::TYPE_HOLIDAY, array('2015-01-06', '2020-01-06')];
70
    }
71
72
    public function getCorpusChristiTestData()
73
    {
74
        return ['Christi Himmelfahrt', Holiday::TYPE_HOLIDAY, array('2015-05-14', '2020-05-21')];
75
    }
76
77
    public function getAllSaintsDayTestData()
78
    {
79
        return ['Allerheiligen', Holiday::TYPE_HOLIDAY, array('2015-11-01', '2020-11-01')];
80
    }
81
82
    public function getAssumptionOfTheBlessedVirginMaryTestData()
83
    {
84
        return ['Mariä Himmelfahrt', Holiday::TYPE_HOLIDAY, array('2015-08-15', '2020-08-15')];
85
    }
86
87
    public function getBuszUndBettTagTestData()
88
    {
89
        return ['Buß- und Bettag', Holiday::TYPE_HOLIDAY, array('2015-11-18', '2020-11-18')];
90
    }
91
}
92