Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added Romania Provider #52

Merged
merged 6 commits into from
Jan 5, 2017
Merged

Added Romania Provider #52

merged 6 commits into from
Jan 5, 2017

Conversation

AngelinCalu
Copy link
Contributor

Added Romania Provider and tests

@stelgenhof stelgenhof self-assigned this Jan 3, 2017
@stelgenhof stelgenhof added this to the v1.6.0 milestone Jan 3, 2017
@stelgenhof
Copy link
Member

Looking great! Let me have a more detailed look tomorrow and I will merge it with the main branch. Will include it in the upcoming 1.6.0 release :)

@AngelinCalu
Copy link
Contributor Author

AngelinCalu commented Jan 3, 2017

Great!

Please check the Children's Day Test suite in particular. That should be Observance before 2017, with the first celebration in 1950, and National Holiday starting to 2017.

*/
public function testObservedHolidays()
{
$this->assertDefinedHolidays([
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This test fails for years before 2016, as this holiday didn't exist yet before 2016. I ran multiple unit tests and it came out as a fail:

Yasumi\tests\Romania\RomaniaTest::testObservedHolidays
Failed asserting that an array has the key 'constantinBrancusiDay'.

Best is to run your unit tests repeatedly, e.g. vendor/bin/phpunit --testsuite=Romania --repeat=100 to ensure nothing is missed.

Copy link
Member

@stelgenhof stelgenhof left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please check the RomaniaTest class to ensure holidays are validated for the years they are established/abolished. (Please have a look at the IrelandTest.php as an example).

Updated rules for Observed Holidays tests
@stelgenhof stelgenhof merged commit 701860d into azuyalabs:master Jan 5, 2017
@AngelinCalu AngelinCalu deleted the Romania branch January 6, 2017 09:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants