Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9b71f30

Browse files
committed
merged branch bschussek/issue6440 (PR #6505)
This PR was merged into the 2.1 branch. Commits ------- 87dcf25 [Form] Fixed test regression introduced in #6440 Discussion ---------- [Form] Fixed test regression introduced in #6440 Bug fix: yes Feature addition: no Backwards compatibility break: no Symfony2 tests pass: yes Fixes the following tickets: - Todo: - License of the code: MIT Documentation PR: -
2 parents 277abab + 87dcf25 commit 9b71f30

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Symfony/Component/Form/Tests/Extension/Core/DataTransformer/DateTimeToStringTransformerTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,11 +111,11 @@ public function testTransformExpectsDateTime()
111111
*/
112112
public function testReverseTransformUsingPipe($format, $input, $output)
113113
{
114-
if (version_compare(phpversion(), '5.3.7', '>=')) {
114+
if (version_compare(phpversion(), '5.3.7', '<')) {
115115
$this->markTestSkipped('Pipe usage requires PHP 5.3.7 or newer.');
116116
}
117117

118-
$reverseTransformer = new DateTimeToStringTransformer('UTC', 'UTC', $format, false);
118+
$reverseTransformer = new DateTimeToStringTransformer('UTC', 'UTC', $format, true);
119119

120120
$output = new \DateTime($output);
121121

0 commit comments

Comments
 (0)