Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[Intl] Extra timezone tests#31325

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
fabpot merged 1 commit intosymfony:masterfromro0NL:intl-tests
Apr 30, 2019
Merged

[Intl] Extra timezone tests#31325

fabpot merged 1 commit intosymfony:masterfromro0NL:intl-tests
Apr 30, 2019

Conversation

@ro0NL
Copy link
Contributor

QA
Branch?master
Bug fix?yes
New feature?no
BC breaks?no
Deprecations?no
Tests pass?yes (including intl-data group)
Fixed tickets#...
LicenseMIT
Doc PRsymfony/symfony-docs#...

Guarantees timezone data integrity. Ideally to go before#31292 :)

@fabpot
Copy link
Member

Thank you@ro0NL.

@fabpotfabpot merged commita3cac2b intosymfony:masterApr 30, 2019
fabpot added a commit that referenced this pull requestApr 30, 2019
This PR was merged into the 4.3-dev branch.Discussion----------[Intl] Extra timezone tests| Q             | A| ------------- | ---| Branch?       | master| Bug fix?      | yes| New feature?  | no| BC breaks?    | no     <!-- seehttps://symfony.com/bc -->| Deprecations? | no| Tests pass?   | yes   (including intl-data group)| Fixed tickets | #...   <!-- #-prefixed issue number(s), if any -->| License       | MIT| Doc PR        | symfony/symfony-docs#... <!-- required for new features -->Guarantees timezone data integrity. Ideally to go before#31292 :)Commits-------a3cac2b [Intl] Extra timezone tests
@ro0NLro0NL deleted the intl-tests branchApril 30, 2019 12:47
{
try {
$this->assertInternalType('string', Timezones::getCountryCode($timezone));
}catch (MissingResourceException$e) {
Copy link
Member

Choose a reason for hiding this comment

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

if it is possible for valid timezone ids to throw a MissingResourceException when trying to get their code, we need to document that in the interface, as it becomes necessary to catch it when using it (or maybe the Timezones class should handle that internally)

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

*/
publicfunctiontestGetGmtOffsetAvailability(string$timezone)
{
$this->assertInternalType('int', Timezones::getRawOffset($timezone));
Copy link
Member

Choose a reason for hiding this comment

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

shouldn't we ensure that with return types instead ?

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

it does :D im on it.

@ro0NLro0NL mentioned this pull requestApr 30, 2019
fabpot added a commit that referenced this pull requestMay 1, 2019
This PR was squashed before being merged into the 4.3-dev branch (closes#31332).Discussion----------[Intl] Add phpdoc| Q             | A| ------------- | ---| Branch?       | master| Bug fix?      | yes| New feature?  | no| BC breaks?    | no     <!-- seehttps://symfony.com/bc -->| Deprecations? | no| Tests pass?   | yes    <!-- please add some, will be required by reviewers -->| Fixed tickets |#31325 (comment)| License       | MIT| Doc PR        | symfony/symfony-docs#... <!-- required for new features -->Commits-------22a6f7b [Intl] Add phpdoc
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@stofstofstof left review comments

@fabpotfabpotfabpot approved these changes

Assignees

No one assigned

Projects

None yet

Milestone

4.3

Development

Successfully merging this pull request may close these issues.

5 participants

@ro0NL@fabpot@stof@nicolas-grekas@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp