Skip to content

Compare php easter_date() with method getEasterSundayTester()#6

Open
h4kuna wants to merge 1 commit into
petaak:masterfrom
h4kuna:use-native-php-easter-date
Open

Compare php easter_date() with method getEasterSundayTester()#6
h4kuna wants to merge 1 commit into
petaak:masterfrom
h4kuna:use-native-php-easter-date

Conversation

@h4kuna

@h4kuna h4kuna commented Apr 7, 2021

Copy link
Copy Markdown

Ahoj,
zkusil jsem porovnat implementovanou metodu pro získání velikonoční neděle s php funkcí easter_date() a dává to stejný výsledky.

Pokud by se ti to líbilo a změnu by jsi chtěl, upravil bych typo a dotáhnul PR.


Hello,
i try to compare implemented method for to get easter sunday with php native function easter_date() and results are same.

If you confirm this replace, i will update typo and i finish the PR.

Comment thread composer.json Outdated
},
"require-dev": {
"nette/tester": "^1.6"
"nette/tester": "^2.0"

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Shouldn't ext-calendar be added as a dev-requirement to use easter_date() in the test?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

First motivation for these changes are to replace this method by native php function. If these changes are confirmed, better way is add ext-calendar to require section.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

That method was created just a few weeks ago in order to avoid the dependency on ext-calendar 😉
See 01eb1bc

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Ok, the method for get easter sunday is little magic. I understand, this PR does not make sence with previus goal. I undestand your notice, why add ext-calendar to dev-requirement. I prepare it.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Thanks 👍

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Done

];
}

public function testPhpEasterDate()

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Nice, thanks for adding the test!

@h4kuna h4kuna force-pushed the use-native-php-easter-date branch from 5b698e2 to 16515e7 Compare April 7, 2021 08:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants