use PHPUnit\Framework\TestCase;
use Symfony\Component\Form\Exception\TransformationFailedException;
use Symfony\Component\Form\Extension\Core\DataTransformer\ArrayToPartsTransformer;
class ArrayToPartsTransformerTest extends TestCase
{
private ArrayToPartsTransformer $transformer;
protected function setUp(): void
{
$this->transformer = new ArrayToPartsTransformer([
'first' => ['a', 'b', 'c'],
'second' => ['d', 'e', 'f'],
]);
}
public function testTransform()
{
$input = [
'a' => '1',
'b' => '2',
'c' => '3',