Skip to content

[Form] Remove broken test case #42630

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

Merged
merged 1 commit into from
Aug 20, 2021
Merged
Changes from all commits
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
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@

class DateTimeToStringTransformerTest extends TestCase
{
public function dataProvider()
public function dataProvider(): array
{
$data = [
return [
['Y-m-d H:i:s', '2010-02-03 16:05:06', '2010-02-03 16:05:06 UTC'],
['Y-m-d H:i:00', '2010-02-03 16:05:00', '2010-02-03 16:05:00 UTC'],
['Y-m-d H:i', '2010-02-03 16:05', '2010-02-03 16:05:00 UTC'],
Expand All @@ -36,7 +36,6 @@ public function dataProvider()

// different day representations
['Y-m-j', '2010-02-3', '2010-02-03 00:00:00 UTC'],
['z', '33', '1970-02-03 00:00:00 UTC'],

// not bijective
// this will not work as PHP will use actual date to replace missing info
Expand All @@ -63,8 +62,6 @@ public function dataProvider()

['Y-z', '2010-33', '2010-02-03 00:00:00 UTC'],
];

return $data;
}

/**
Expand Down