8000 [Validator] Add `TimezoneValidator` by phansys · Pull Request #22262 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

[Validator] Add TimezoneValidator #22262

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

Closed
wants to merge 14 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Add simple assertion at TimezoneTest::testValidTimezoneConstraints()
  • Loading branch information
phansys committed Nov 29, 2018
commit c3dce5c7e4fbb1be64f5a41f899335a9c8176bc9
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ public function testValidTimezoneConstraints()
'message' => 'myMessage',
'zone' => \DateTimeZone::ALL,
));

// Make an assertion in order to avoid this test to be marked as risky
$this->assertInstanceOf(Timezone::class, $constraint);
}

/**
Expand Down
0