diff --git a/source/Romanian.php b/source/Romanian.php index 598149d..16ef84c 100644 --- a/source/Romanian.php +++ b/source/Romanian.php @@ -98,20 +98,23 @@ protected function setHolidays(\DateTime $lngDate, $inclCatholicEaster = false, */ private function setHolidaysFixed(\DateTime $lngDate) { - $givenYear = $lngDate->format('Y'); - $daying = [ - mktime(0, 0, 0, 1, 1, $givenYear), // Happy New Year - mktime(0, 0, 0, 1, 2, $givenYear), // recovering from New Year party - mktime(0, 0, 0, 5, 1, $givenYear), // May 1st - mktime(0, 0, 0, 12, 1, $givenYear), // Romanian National Day - mktime(0, 0, 0, 12, 25, $givenYear), // Christmas Day - mktime(0, 0, 0, 12, 26, $givenYear), // Christmas 2nd Day + $daying = [ + mktime(0, 0, 0, 1, 1, $lngDate->format('Y')), // Happy New Year + mktime(0, 0, 0, 1, 2, $lngDate->format('Y')), // recovering from New Year party + mktime(0, 0, 0, 5, 1, $lngDate->format('Y')), // May 1st + mktime(0, 0, 0, 12, 1, $lngDate->format('Y')), // Romanian National Day + mktime(0, 0, 0, 12, 25, $lngDate->format('Y')), // Christmas Day + mktime(0, 0, 0, 12, 26, $lngDate->format('Y')), // Christmas 2nd Day ]; - if ($givenYear >= 2009) { - $daying[] = mktime(0, 0, 0, 8, 15, $givenYear); // St. Marry - } - if ($givenYear >= 2012) { - $daying[] = mktime(0, 0, 0, 11, 30, $givenYear); // St. Andrew + if ($lngDate->format('Y') >= 2009) { + $daying[] = mktime(0, 0, 0, 8, 15, $lngDate->format('Y')); // St. Marry + if ($lngDate->format('Y') >= 2012) { + $daying[] = mktime(0, 0, 0, 11, 30, $lngDate->format('Y')); // St. Andrew + if ($lngDate->format('Y') >= 2017) { + $daying[] = mktime(0, 0, 0, 1, 24, $lngDate->format('Y')); // Union Day + $daying[] = mktime(0, 0, 0, 6, 1, $lngDate->format('Y')); // Child's Day + } + } } sort($daying); return $daying; diff --git a/tests/php-unit/RomanianTest.php b/tests/php-unit/RomanianTest.php index a3b7928..25dc4ba 100644 --- a/tests/php-unit/RomanianTest.php +++ b/tests/php-unit/RomanianTest.php @@ -30,105 +30,128 @@ class RomanianTest extends \PHPUnit_Framework_TestCase use \danielgp\bank_holidays\Romanian; - public function testHolidaysFixedButWorkingIncluded() { - // Arrange - $a = $this->setHolidays(new \DateTime('2016-04-01'), true, true); - // Assert - $this->assertContains(strtotime('2016-02-19'), $a); - } - - public function testHolidaysEaster2015CatholicEasterFirstDay() { + public function testHolidaysEaster2015CatholicEasterFirstDay() + { // Arrange $a = $this->setHolidays(new \DateTime('2015-04-01'), true); // Assert $this->assertContains(strtotime('2015-04-05'), $a); } - public function testHolidaysEaster2015CatholicEasterSecondDay() { + public function testHolidaysEaster2015CatholicEasterSecondDay() + { // Arrange $a = $this->setHolidays(new \DateTime('2015-04-01'), true); // Assert $this->assertContains(strtotime('2015-04-06'), $a); } - public function testHolidaysEaster2015FirstDayOfYear() { + public function testHolidaysEaster2015FirstDayOfYear() + { // Arrange $a = $this->setHolidays(new \DateTime('2015-12-01')); // Assert $this->assertContains(strtotime('2015-01-01'), $a); } - public function testHolidaysEaster2015LastDayOfYear() { + public function testHolidaysEaster2015LastDayOfYear() + { // Arrange $a = $this->setHolidays(new \DateTime('2015-12-01')); // Assert $this->assertNotContains(strtotime('2015-12-31'), $a); } - public function testHolidaysEaster2015OrthodoxEasterFirstDay() { + public function testHolidaysEaster2015OrthodoxEasterFirstDay() + { // Arrange $a = $this->setHolidays(new \DateTime('2015-04-01'), true); // Assert $this->assertContains(strtotime('2015-04-12'), $a); } - public function testHolidaysEaster2015OrthodoxEasterSecondDay() { + public function testHolidaysEaster2015OrthodoxEasterSecondDay() + { // Arrange $a = $this->setHolidays(new \DateTime('2015-04-01'), true); // Assert $this->assertContains(strtotime('2015-04-13'), $a); } - public function testHolidaysInMonthForMonthWithCatholicEaster() { + public function testHolidaysFixedButWorkingIncluded() + { + // Arrange + $a = $this->setHolidays(new \DateTime('2016-04-01'), true, true); + // Assert + $this->assertContains(strtotime('2016-02-19'), $a); + } + + public function testHolidaysFixedNewIn2017() + { + // Arrange + $a = $this->setHolidays(new \DateTime('2017-01-24'), true, true); + // Assert + $this->assertContains(strtotime('2017-01-24'), $a); + } + + public function testHolidaysInMonthForMonthWithCatholicEaster() + { // Arrange $a = $this->setHolidaysInMonth(new \DateTime('2015-04-01'), true); // Assert $this->assertEquals(4, $a); } - public function testHolidaysInMonthForMonthWithoutCatholicEaster() { + public function testHolidaysInMonthForMonthWithoutCatholicEaster() + { // Arrange $a = $this->setHolidaysInMonth(new \DateTime('2015-04-01'), false); // Assert $this->assertEquals(2, $a); } - public function testWorkingDaysInMonthForMonthOf19Days() { + public function testWorkingDaysInMonthForMonthOf19Days() + { // Arrange $a = $this->setWorkingDaysInMonth(new \DateTime('2001-12-01')); // Assert $this->assertEquals(19, $a); } - public function testWorkingDaysInMonthForMonthOf20Days() { + public function testWorkingDaysInMonthForMonthOf20Days() + { // Arrange $a = $this->setWorkingDaysInMonth(new \DateTime('2001-02-01')); // Assert $this->assertEquals(20, $a); } - public function testWorkingDaysInMonthForMonthOf20DaysWithCatholicEaster() { + public function testWorkingDaysInMonthForMonthOf20DaysWithCatholicEaster() + { // Arrange $a = $this->setWorkingDaysInMonth(new \DateTime('2015-04-01'), true); // Assert $this->assertEquals(20, $a); } - public function testWorkingDaysInMonthForMonthOf21Days() { + public function testWorkingDaysInMonthForMonthOf21Days() + { // Arrange $a = $this->setWorkingDaysInMonth(new \DateTime('2006-01-01')); // Assert $this->assertEquals(21, $a); } - public function testWorkingDaysInMonthForMonthOf22Days() { + public function testWorkingDaysInMonthForMonthOf22Days() + { // Arrange $a = $this->setWorkingDaysInMonth(new \DateTime('2016-09-01'), false); // Assert $this->assertEquals(22, $a); } - public function testWorkingDaysInMonthForMonthOf23Days() { + public function testWorkingDaysInMonthForMonthOf23Days() + { // Arrange $a = $this->setWorkingDaysInMonth(new \DateTime('2015-07-01')); // Assert diff --git a/tests/php-unit/coverage.html/Romanian.php.html b/tests/php-unit/coverage.html/Romanian.php.html index 5381649..df08919 100644 --- a/tests/php-unit/coverage.html/Romanian.php.html +++ b/tests/php-unit/coverage.html/Romanian.php.html @@ -2,7 +2,7 @@ - Code Coverage for D:\Git\GitHub\danielgp.GitHub\bank-holidays\source/Romanian.php + Code Coverage for C:\www\Data\GitRepositories\GitHub\danielgp\bank-holidays\source/Romanian.php @@ -17,7 +17,7 @@
@@ -66,7 +66,7 @@
100.00%
-
65 / 65
+
68 / 68
@@ -87,7 +87,7 @@
100.00%
9 / 9
- 22 + 23
100.00% covered (success) @@ -95,7 +95,7 @@
100.00%
-
65 / 65
+
68 / 68
@@ -171,7 +171,7 @@
100.00%
1 / 1
- 3 + 4
100.00% covered (success) @@ -179,11 +179,11 @@
100.00%
-
13 / 13
+
15 / 15
-  setHolidaysFixedButWorking +  setHolidaysFixedButWorking
100.00% covered (success) @@ -204,7 +204,7 @@ -  setHolidaysOrthodoxEaster +  setHolidaysOrthodoxEaster
100.00% covered (success) @@ -221,11 +221,11 @@
100.00%
-
7 / 7
+
8 / 8
-  setHolidaysInMonth +  setHolidaysInMonth
100.00% covered (success) @@ -246,7 +246,7 @@ -  setMonthAllDaysIntoArray +  setMonthAllDaysIntoArray
100.00% covered (success) @@ -267,7 +267,7 @@ -  setWorkingDaysInMonth +  setWorkingDaysInMonth
100.00% covered (success) @@ -337,9 +337,9 @@      */     private function getEasterDatetime($year)     { -         $base = new \DateTime("$year-03-21"); -         $days = easter_days($year); -         return $base->add(new \DateInterval("P{$days}D")); +         $base = new \DateTime("$year-03-21"); +         $days = easter_days($year); +         return $base->add(new \DateInterval("P{$days}D"));     }     /** @@ -350,11 +350,11 @@      */     protected function readTypeFromJsonFileUniversal($filePath, $fileBaseName)     { -         $fName       = __DIR__ . DIRECTORY_SEPARATOR . $filePath . DIRECTORY_SEPARATOR . $fileBaseName . '.min.json'; -         $fJson       = fopen($fName, 'r'); -         $jSonContent = fread($fJson, filesize($fName)); -         fclose($fJson); -         return json_decode($jSonContent, true); +         $fName       = $filePath . DIRECTORY_SEPARATOR . $fileBaseName . '.min.json'; +         $fJson       = fopen($fName, 'r'); +         $jSonContent = fread($fJson, filesize($fName)); +         fclose($fJson); +         return json_decode($jSonContent, true);     }     /** @@ -366,21 +366,21 @@      */     protected function setHolidays(\DateTime $lngDate, $inclCatholicEaster = false, $inclWorkingHolidays = false)     { -         $givenYear = $lngDate->format('Y'); -         $daying    = array_merge($this->setHolidaysOrthodoxEaster($lngDate), $this->setHolidaysFixed($lngDate)); -         if ($inclWorkingHolidays) { -             $daying = array_merge($daying, $this->setHolidaysFixedButWorking($lngDate)); +         $givenYear = $lngDate->format('Y'); +         $daying    = array_merge($this->setHolidaysOrthodoxEaster($lngDate), $this->setHolidaysFixed($lngDate)); +         if ($inclWorkingHolidays) { +             $daying = array_merge($daying, $this->setHolidaysFixedButWorking($lngDate));         } -         if ($inclCatholicEaster) { // Catholic easter is already known by PHP -             $firstEasterDate  = strtotime($this->getEasterDatetime($givenYear)->format('Y-m-d')); -             $secondEasterDate = strtotime('+1 day', $firstEasterDate); -             $daying           = array_merge($daying, [ -                 $firstEasterDate, -                 $secondEasterDate, +         if ($inclCatholicEaster) { // Catholic easter is already known by PHP +             $firstEasterDate  = strtotime($this->getEasterDatetime($givenYear)->format('Y-m-d')); +             $secondEasterDate = strtotime('+1 day', $firstEasterDate); +             $daying           = array_merge($daying, [ +                 $firstEasterDate, +                 $secondEasterDate,             ]);         } -         sort($daying); -         return array_unique($daying); // remove duplicate for when catholic and orthodox easter match +         sort($daying); +         return array_unique($daying); // remove duplicate for when catholic and orthodox easter match     }     /** @@ -392,118 +392,122 @@      */     private function setHolidaysFixed(\DateTime $lngDate)     { -         $givenYear = $lngDate->format('Y'); -         $daying    = [ -             mktime(0, 0, 0, 1, 1, $givenYear), // Happy New Year -             mktime(0, 0, 0, 1, 2, $givenYear), // recovering from New Year party -             mktime(0, 0, 0, 5, 1, $givenYear), // May 1st -             mktime(0, 0, 0, 12, 1, $givenYear), // Romanian National Day -             mktime(0, 0, 0, 12, 25, $givenYear), // Christmas Day -             mktime(0, 0, 0, 12, 26, $givenYear), // Christmas 2nd Day -         ]; -         if ($givenYear >= 2009) { -             $daying[] = mktime(0, 0, 0, 8, 15, $givenYear); // St. Marry -         } -         if ($givenYear >= 2012) { -             $daying[] = mktime(0, 0, 0, 11, 30, $givenYear); // St. Andrew -         } -         sort($daying); -         return $daying; -     } - -     /** -      * List of Romanian fixed holidays that are still working (weird ones) -      * (where fixed means every single year occur on same day of the month) -      * -      * @param \DateTime $lngDate -      * @return array -      */ -     private function setHolidaysFixedButWorking(\DateTime $lngDate) -     { -         $daying    = []; -         $givenYear = $lngDate->format('Y'); -         if ($givenYear >= 2015) { -             $daying[] = mktime(0, 0, 0, 1, 24, $givenYear); // Unirea Principatelor Romane -         } -         if ($givenYear >= 2016) { -             $daying[] = mktime(0, 0, 0, 2, 19, $givenYear); // Constantin Brancusi birthday +         $daying = [ +             mktime(0, 0, 0, 1, 1, $lngDate->format('Y')), // Happy New Year +             mktime(0, 0, 0, 1, 2, $lngDate->format('Y')), // recovering from New Year party +             mktime(0, 0, 0, 5, 1, $lngDate->format('Y')), // May 1st +             mktime(0, 0, 0, 12, 1, $lngDate->format('Y')), // Romanian National Day +             mktime(0, 0, 0, 12, 25, $lngDate->format('Y')), // Christmas Day +             mktime(0, 0, 0, 12, 26, $lngDate->format('Y')), // Christmas 2nd Day +         ]; +         if ($lngDate->format('Y') >= 2009) { +             $daying[] = mktime(0, 0, 0, 8, 15, $lngDate->format('Y')); // St. Marry +             if ($lngDate->format('Y') >= 2012) { +                 $daying[] = mktime(0, 0, 0, 11, 30, $lngDate->format('Y')); // St. Andrew +                 if ($lngDate->format('Y') >= 2017) { +                     $daying[] = mktime(0, 0, 0, 1, 24, $lngDate->format('Y')); // Union Day +                     $daying[] = mktime(0, 0, 0, 6, 1, $lngDate->format('Y')); // Child's Day +                 } +             } +         } +         sort($daying); +         return $daying; +     } + +     /** +      * List of Romanian fixed holidays that are still working (weird ones) +      * (where fixed means every single year occur on same day of the month) +      * +      * @param \DateTime $lngDate +      * @return array +      */ +     private function setHolidaysFixedButWorking(\DateTime $lngDate) +     { +         $daying    = []; +         $givenYear = $lngDate->format('Y'); +         if ($givenYear >= 2015) { +             $daying[] = mktime(0, 0, 0, 1, 24, $givenYear); // Unirea Principatelor Romane         } -         return $daying; -     } - -     /** -      * List of all Orthodox holidays and Pentecost -      * -      * @param \DateTime $lngDate -      * @return array -      */ -     private function setHolidaysOrthodoxEaster(\DateTime $lngDate) -     { -         $givenYear      = $lngDate->format('Y'); -         $daying         = []; -         $statmentsArray = $this->readTypeFromJsonFileUniversal('json', 'RomanianBankHolidays'); -         if (array_key_exists($givenYear, $statmentsArray)) { -             foreach ($statmentsArray[$givenYear] as $value) { -                 $daying[] = strtotime($value); -             } -         } -         return $daying; -     } - -     /** -      * returns bank holidays in a given month -      * -      * @param \DateTime $lngDate -      * @param boolean $inclCatholicEaster -      * @return int -      */ -     protected function setHolidaysInMonth(\DateTime $lngDate, $inclCatholicEaster = false) -     { -         $holidaysInGivenYear = $this->setHolidays($lngDate, $inclCatholicEaster); -         $thisMonthDayArray   = $this->setMonthAllDaysIntoArray($lngDate); -         $holidays            = 0; -         foreach ($thisMonthDayArray as $value) { -             if (in_array($value, $holidaysInGivenYear)) { -                 $holidays += 1; -             } -         } -         return $holidays; -     } - -     /** -      * return an array with all days within a month from a given date -      * -      * @param \DateTime $lngDate -      * @return array -      */ -     protected function setMonthAllDaysIntoArray(\DateTime $lngDate) -     { -         $firstDayGivenMonth  = strtotime($lngDate->modify('first day of this month')->format('Y-m-d')); -         $lastDayInGivenMonth = strtotime($lngDate->modify('last day of this month')->format('Y-m-d')); -         $secondsInOneDay     = 24 * 60 * 60; -         return range($firstDayGivenMonth, $lastDayInGivenMonth, $secondsInOneDay); -     } - -     /** -      * returns working days in a given month -      * -      * @param \DateTime $lngDate -      * @param boolean $inclCatholicEaster -      * @return int -      */ -     protected function setWorkingDaysInMonth(\DateTime $lngDate, $inclCatholicEaster = false) -     { -         $holidaysInGivenYear = $this->setHolidays($lngDate, $inclCatholicEaster); -         $thisMonthDayArray   = $this->setMonthAllDaysIntoArray($lngDate); -         $workingDays         = 0; -         foreach ($thisMonthDayArray as $value) { -             if (!in_array(strftime('%w', $value), [0, 6]) && !in_array($value, $holidaysInGivenYear)) { -                 $workingDays += 1; -             } -         } -         return $workingDays; -     } - } +         if ($givenYear >= 2016) { +             $daying[] = mktime(0, 0, 0, 2, 19, $givenYear); // Constantin Brancusi birthday +         } +         return $daying; +     } + +     /** +      * List of all Orthodox holidays and Pentecost +      * +      * @param \DateTime $lngDate +      * @return array +      */ +     private function setHolidaysOrthodoxEaster(\DateTime $lngDate) +     { +         $givenYear      = $lngDate->format('Y'); +         $daying         = []; +         $configPath     = __DIR__ . DIRECTORY_SEPARATOR . 'json'; +         $statmentsArray = $this->readTypeFromJsonFileUniversal($configPath, 'RomanianBankHolidays'); +         if (array_key_exists($givenYear, $statmentsArray)) { +             foreach ($statmentsArray[$givenYear] as $value) { +                 $daying[] = strtotime($value); +             } +         } +         return $daying; +     } + +     /** +      * returns bank holidays in a given month +      * +      * @param \DateTime $lngDate +      * @param boolean $inclCatholicEaster +      * @return int +      */ +     protected function setHolidaysInMonth(\DateTime $lngDate, $inclCatholicEaster = false) +     { +         $holidaysInGivenYear = $this->setHolidays($lngDate, $inclCatholicEaster); +         $thisMonthDayArray   = $this->setMonthAllDaysIntoArray($lngDate); +         $holidays            = 0; +         foreach ($thisMonthDayArray as $value) { +             if (in_array($value, $holidaysInGivenYear)) { +                 $holidays += 1; +             } +         } +         return $holidays; +     } + +     /** +      * return an array with all days within a month from a given date +      * +      * @param \DateTime $lngDate +      * @return array +      */ +     protected function setMonthAllDaysIntoArray(\DateTime $lngDate) +     { +         $firstDayGivenMonth  = strtotime($lngDate->modify('first day of this month')->format('Y-m-d')); +         $lastDayInGivenMonth = strtotime($lngDate->modify('last day of this month')->format('Y-m-d')); +         $secondsInOneDay     = 24 * 60 * 60; +         return range($firstDayGivenMonth, $lastDayInGivenMonth, $secondsInOneDay); +     } + +     /** +      * returns working days in a given month +      * +      * @param \DateTime $lngDate +      * @param boolean $inclCatholicEaster +      * @return int +      */ +     protected function setWorkingDaysInMonth(\DateTime $lngDate, $inclCatholicEaster = false) +     { +         $holidaysInGivenYear = $this->setHolidays($lngDate, $inclCatholicEaster); +         $thisMonthDayArray   = $this->setMonthAllDaysIntoArray($lngDate); +         $workingDays         = 0; +         foreach ($thisMonthDayArray as $value) { +             if (!in_array(strftime('%w', $value), [0, 6]) && !in_array($value, $holidaysInGivenYear)) { +                 $workingDays += 1; +             } +         } +         return $workingDays; +     } + } @@ -516,7 +520,7 @@

Legend

Dead Code

- Generated by php-code-coverage 4.0.1 using PHP 7.0.12 with Xdebug 2.4.1 and PHPUnit 5.5.4 at Wed Oct 19 1:19:26 EEST 2016. + Generated by php-code-coverage 4.0.2 using PHP 7.0.13 with Xdebug 2.4.1 and PHPUnit 5.6.5 at Mon Nov 28 11:56:19 EET 2016.

diff --git a/tests/php-unit/coverage.html/dashboard.html b/tests/php-unit/coverage.html/dashboard.html index 2d0eca2..3ad3fde 100644 --- a/tests/php-unit/coverage.html/dashboard.html +++ b/tests/php-unit/coverage.html/dashboard.html @@ -2,7 +2,7 @@ - Dashboard for D:\Git\GitHub\danielgp.GitHub\bank-holidays\source + Dashboard for C:\www\Data\GitRepositories\GitHub\danielgp\bank-holidays\source @@ -18,7 +18,7 @@
@@ -136,7 +136,7 @@

Project Risks

@@ -217,7 +217,7 @@

Project Risks

.showDistY(true) .showLegend(false) .forceX([0, 100]); - chart.tooltipContent(function(key, y, e, graph) { + chart.tooltipContent(function(graph) { return '

' + graph.point.class + '

'; }); @@ -225,7 +225,7 @@

Project Risks

chart.yAxis.axisLabel('Cyclomatic Complexity'); d3.select('#classComplexity svg') - .datum(getComplexityData([[100,22,"Romanian<\/a>"]], 'Class Complexity')) + .datum(getComplexityData([[100,23,"Romanian<\/a>"]], 'Class Complexity')) .transition() .duration(500) .call(chart); @@ -241,7 +241,7 @@

Project Risks

.showDistY(true) .showLegend(false) .forceX([0, 100]); - chart.tooltipContent(function(key, y, e, graph) { + chart.tooltipContent(function(graph) { return '

' + graph.point.class + '

'; }); @@ -249,7 +249,7 @@

Project Risks

chart.yAxis.axisLabel('Method Complexity'); d3.select('#methodComplexity svg') - .datum(getComplexityData([[100,1,"
Romanian::getEasterDatetime<\/a>"],[100,1,"Romanian::readTypeFromJsonFileUniversal<\/a>"],[100,3,"Romanian::setHolidays<\/a>"],[100,3,"Romanian::setHolidaysFixed<\/a>"],[100,3,"Romanian::setHolidaysFixedButWorking<\/a>"],[100,3,"Romanian::setHolidaysOrthodoxEaster<\/a>"],[100,3,"Romanian::setHolidaysInMonth<\/a>"],[100,1,"Romanian::setMonthAllDaysIntoArray<\/a>"],[100,4,"Romanian::setWorkingDaysInMonth<\/a>"]], 'Method Complexity')) + .datum(getComplexityData([[100,1,"Romanian::getEasterDatetime<\/a>"],[100,1,"Romanian::readTypeFromJsonFileUniversal<\/a>"],[100,3,"Romanian::setHolidays<\/a>"],[100,4,"Romanian::setHolidaysFixed<\/a>"],[100,3,"Romanian::setHolidaysFixedButWorking<\/a>"],[100,3,"Romanian::setHolidaysOrthodoxEaster<\/a>"],[100,3,"Romanian::setHolidaysInMonth<\/a>"],[100,1,"Romanian::setMonthAllDaysIntoArray<\/a>"],[100,4,"Romanian::setWorkingDaysInMonth<\/a>"]], 'Method Complexity')) .transition() .duration(500) .call(chart); diff --git a/tests/php-unit/coverage.html/index.html b/tests/php-unit/coverage.html/index.html index 373b1c0..7cec8f0 100644 --- a/tests/php-unit/coverage.html/index.html +++ b/tests/php-unit/coverage.html/index.html @@ -2,7 +2,7 @@ - Code Coverage for D:\Git\GitHub\danielgp.GitHub\bank-holidays\source + Code Coverage for C:\www\Data\GitRepositories\GitHub\danielgp\bank-holidays\source @@ -17,7 +17,7 @@
100.00%
-
65 / 65
+
68 / 68
100.00% covered (success) @@ -77,7 +77,7 @@
100.00%
-
65 / 65
+
68 / 68
100.00% covered (success) @@ -108,7 +108,7 @@

Legend

High: 90% to 100%

- Generated by php-code-coverage 4.0.1 using PHP 7.0.12 with Xdebug 2.4.1 and PHPUnit 5.5.4 at Wed Oct 19 1:19:26 EEST 2016. + Generated by php-code-coverage 4.0.2 using PHP 7.0.13 with Xdebug 2.4.1 and PHPUnit 5.6.5 at Mon Nov 28 11:56:19 EET 2016.

diff --git a/tests/php-unit/junit.xml b/tests/php-unit/junit.xml index 3206c0c..441766e 100644 --- a/tests/php-unit/junit.xml +++ b/tests/php-unit/junit.xml @@ -1,22 +1,23 @@ - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + diff --git a/tests/php-unit/testdox.html b/tests/php-unit/testdox.html index 04efc83..8a86db2 100644 --- a/tests/php-unit/testdox.html +++ b/tests/php-unit/testdox.html @@ -1,50 +1,51 @@ - - - - - Test Documentation - - - -

Romanian

-
    -
  • ✓ Holidays fixed but working included
  • -
  • ✓ Holidays easter 2015 catholic easter first day
  • -
  • ✓ Holidays easter 2015 catholic easter second day
  • -
  • ✓ Holidays easter 2015 first day of year
  • -
  • ✓ Holidays easter 2015 last day of year
  • -
  • ✓ Holidays easter 2015 orthodox easter first day
  • -
  • ✓ Holidays easter 2015 orthodox easter second day
  • -
  • ✓ Holidays in month for month with catholic easter
  • -
  • ✓ Holidays in month for month without catholic easter
  • -
  • ✓ Working days in month for month of 19 days
  • -
  • ✓ Working days in month for month of 20 days
  • -
  • ✓ Working days in month for month of 20 days with catholic easter
  • -
  • ✓ Working days in month for month of 21 days
  • -
  • ✓ Working days in month for month of 22 days
  • -
  • ✓ Working days in month for month of 23 days
  • -
- + + + + + Test Documentation + + + +

Romanian

+
    +
  • ✓ Holidays easter 2015 catholic easter first day
  • +
  • ✓ Holidays easter 2015 catholic easter second day
  • +
  • ✓ Holidays easter 2015 first day of year
  • +
  • ✓ Holidays easter 2015 last day of year
  • +
  • ✓ Holidays easter 2015 orthodox easter first day
  • +
  • ✓ Holidays easter 2015 orthodox easter second day
  • +
  • ✓ Holidays fixed but working included
  • +
  • ✓ Holidays fixed new in 2017
  • +
  • ✓ Holidays in month for month with catholic easter
  • +
  • ✓ Holidays in month for month without catholic easter
  • +
  • ✓ Working days in month for month of 19 days
  • +
  • ✓ Working days in month for month of 20 days
  • +
  • ✓ Working days in month for month of 20 days with catholic easter
  • +
  • ✓ Working days in month for month of 21 days
  • +
  • ✓ Working days in month for month of 22 days
  • +
  • ✓ Working days in month for month of 23 days
  • +
+ \ No newline at end of file diff --git a/tests/php-unit/testdox.txt b/tests/php-unit/testdox.txt index ea59ae2..0f4bbdb 100644 --- a/tests/php-unit/testdox.txt +++ b/tests/php-unit/testdox.txt @@ -1,17 +1,18 @@ -Romanian - [x] Holidays fixed but working included - [x] Holidays easter 2015 catholic easter first day - [x] Holidays easter 2015 catholic easter second day - [x] Holidays easter 2015 first day of year - [x] Holidays easter 2015 last day of year - [x] Holidays easter 2015 orthodox easter first day - [x] Holidays easter 2015 orthodox easter second day - [x] Holidays in month for month with catholic easter - [x] Holidays in month for month without catholic easter - [x] Working days in month for month of 19 days - [x] Working days in month for month of 20 days - [x] Working days in month for month of 20 days with catholic easter - [x] Working days in month for month of 21 days - [x] Working days in month for month of 22 days - [x] Working days in month for month of 23 days - +Romanian + [x] Holidays easter 2015 catholic easter first day + [x] Holidays easter 2015 catholic easter second day + [x] Holidays easter 2015 first day of year + [x] Holidays easter 2015 last day of year + [x] Holidays easter 2015 orthodox easter first day + [x] Holidays easter 2015 orthodox easter second day + [x] Holidays fixed but working included + [x] Holidays fixed new in 2017 + [x] Holidays in month for month with catholic easter + [x] Holidays in month for month without catholic easter + [x] Working days in month for month of 19 days + [x] Working days in month for month of 20 days + [x] Working days in month for month of 20 days with catholic easter + [x] Working days in month for month of 21 days + [x] Working days in month for month of 22 days + [x] Working days in month for month of 23 days +