b0y-101 Mini Shell


Current Path : E:/www/b-group.old/spfin/mainpay/jwt-framework/tests/Component/Core/
File Upload :
Current File : E:/www/b-group.old/spfin/mainpay/jwt-framework/tests/Component/Core/JsonConverterTest.php

<?php

declare(strict_types=1);

namespace Jose\Tests\Component\Core;

use Jose\Component\Core\Util\JsonConverter;
use PHPUnit\Framework\Attributes\Test;
use PHPUnit\Framework\TestCase;

/**
 * @internal
 */
final class JsonConverterTest extends TestCase
{
    #[Test]
    public function iCanConvertAnObjectIntoAJsonString(): void
    {
        static::assertSame('{"foo":"BAR"}', JsonConverter::encode([
            'foo' => 'BAR',
        ]));
        static::assertSame([
            'foo' => 'BAR',
        ], JsonConverter::decode('{"foo":"BAR"}'));
    }
}

Copyright © 2019 by b0y-101