<commit_before><?php

namespace Kwetal\Workdays\Calendar\World\Europe\Germany;

use Kwetal\DateUtils\DateTime\DateTime;
use PHPUnit_Framework_TestCase;

class MecklenburgVorpommernTest extends PHPUnit_Framework_TestCase
{
    public $calendar;

    public function createCalendar($year)
    {
        $this->calendar = new Brandenburg($year);
    }

    public function testGetAllHolidaysReturnsArray()
    {
        $this->createCalendar(2014);
        $value = $this->calendar->getHolidays();

        $this->assertInternalType('array', $value);
    }

    public function testGetHolidaysReturnsCorrectCount()
    {
        $this->createCalendar(2014);
        $value = $this->calendar->getHolidays();

        $this->assertCount(12, $value);
    }

    public function testGetHolidaysHasAllHolidays()
    {
        $this->createCalendar(2014);
        $value = $this->calendar->getHolidays();

        $this->assertTrue(in_array(new DateTime('2014-10-31'), $value));
    }

    public function testAddWorkDays()
    {
        $this->createCalendar(2014);

        $day = new \DateTime('2014-10-03');
        $this->calendar->addWorkdays($day, 1);

        $this->assertEquals('2014-10-06', $day->format('Y-m-d'));

        $day = new \DateTime('2014-10-03');
        $this->calendar->addWorkdays($day, 20);

        $this->assertEquals('2014-11-03', $day->format('Y-m-d'));
    }
} 
<commit_msg>Creates the right calendar now<commit_after><?php

namespace Kwetal\Workdays\Calendar\World\Europe\Germany;

use Kwetal\DateUtils\DateTime\DateTime;
use PHPUnit_Framework_TestCase;

class MecklenburgVorpommernTest extends PHPUnit_Framework_TestCase
{
    public $calendar;

    public function createCalendar($year)
    {
        $this->calendar = new MecklenburgVorpommern($year);
    }

    public function testGetAllHolidaysReturnsArray()
    {
        $this->createCalendar(2014);
        $value = $this->calendar->getHolidays();

        $this->assertInternalType('array', $value);
    }

    public function testGetHolidaysReturnsCorrectCount()
    {
        $this->createCalendar(2014);
        $value = $this->calendar->getHolidays();

        $this->assertCount(12, $value);
    }

    public function testGetHolidaysHasAllHolidays()
    {
        $this->createCalendar(2014);
        $value = $this->calendar->getHolidays();

        $this->assertTrue(in_array(new DateTime('2014-10-31'), $value));
    }

    public function testAddWorkDays()
    {
        $this->createCalendar(2014);

        $day = new \DateTime('2014-10-03');
        $this->calendar->addWorkdays($day, 1);

        $this->assertEquals('2014-10-06', $day->format('Y-m-d'));

        $day = new \DateTime('2014-10-03');
        $this->calendar->addWorkdays($day, 20);

        $this->assertEquals('2014-11-03', $day->format('Y-m-d'));
    }
} 

{'fraction_non_alphanumeric': 0.15373715905065533, 'fraction_numerical': 0.04321643641516117, 'mean_word_length': 3.0986937590711174, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 47, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5047189', 'n_tokens_mistral': 985, 'n_tokens_neox': 865, 'n_words': 128}