['U', '1265213106', '2010-02-03 16:05:06 UTC'
],
['Y-z', '2010-33', '2010-02-03 00:00:00 UTC'
],
];
} /**
* @dataProvider dataProvider
*/
public function testTransform($format,
$output,
$input) { $transformer =
new DateTimeToStringTransformer('UTC', 'UTC',
$format);
$input =
new \
DateTime($input);
$this->
assertEquals($output,
$transformer->
transform($input));
} public function testTransformEmpty() { $transformer =
new DateTimeToStringTransformer();
$this->
assertSame('',
$transformer->
transform(null
));
}