JsonApiDecoder example

use Symfony\Component\Serializer\Exception\UnexpectedValueException;

/** * @internal */
class JsonApiDecoderTest extends TestCase
{
    private JsonApiDecoder $decoder;

    protected function setUp(): void
    {
        $this->decoder = new JsonApiDecoder();
    }

    public function testSupportFormat(): void
    {
        static::assertTrue($this->decoder->supportsDecoding('jsonapi'));
        static::assertFalse($this->decoder->supportsDecoding('JSONAPI'));
        static::assertFalse($this->decoder->supportsDecoding('yml'));
    }

    public static function emptyInputProvider(): array
    {
        
Home | Imprint | This part of the site doesn't use cookies.