-
-
Notifications
You must be signed in to change notification settings - Fork 158
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
Conversation
First Commit for Romanian Provider
Minor Format fixing
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 :) |
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([ |
There was a problem hiding this comment.
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.
There was a problem hiding this 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
Added Romania Provider and tests