<?php

namespace Unit\Serializer;

use Myvetshop\Module\Clinique\Serializer\ProductManufacturerReportingSerializer;
use PHPUnit\Framework\TestCase;

class ProductManufacturerReportingSerializerTest extends TestCase
{
    public function testSerialize(): void
    {
        self::assertSame(
            [
                [
                    'id' => 1,
                    'name' => 'Hill\'s',
                    'active' => true,
                ],
            ],
            \json_decode(
                (new ProductManufacturerReportingSerializer())->serialize([
                    [
                        'id' => '1',
                        'name' => 'Hill\'s',
                        'active' => '1',
                    ],
                ]),
                true,
            )
        );
    }
}
