use Symfony\Component\Form\Exception\TransformationFailedException;
use Symfony\Component\Form\Extension\Core\DataTransformer\UuidToStringTransformer;
use Symfony\Component\Uid\Uuid;
use Symfony\Component\Uid\UuidV1;
class UuidToStringTransformerTest extends TestCase
{ public function testTransform() { $transformer =
new UuidToStringTransformer();
$this->
assertEquals('123e4567-e89b-12d3-a456-426655440000',
$transformer->
transform(new UuidV1('123e4567-e89b-12d3-a456-426655440000'
)));
} public function testTransformEmpty() { $transformer =
new UuidToStringTransformer();
$this->
assertNull($transformer->
transform(null
));
} public function testTransformExpectsUuid() {