use PHPUnit\Framework\TestCase;
use Symfony\Component\Form\Exception\TransformationFailedException;
use Symfony\Component\Form\Extension\Core\DataTransformer\DateTimeImmutableToDateTimeTransformer;
class DateTimeImmutableToDateTimeTransformerTest extends TestCase
{ /**
* @dataProvider provider
*/
public function testTransform(\DateTime
$expectedOutput, \DateTimeImmutable
$input) { $transformer =
new DateTimeImmutableToDateTimeTransformer();
$actualOutput =
$transformer->
transform($input);
$this->
assertEquals($expectedOutput,
$actualOutput);
$this->
assertEquals($expectedOutput->
getTimezone(),
$actualOutput->
getTimezone());
} public static function provider() { return [ [