ApiPlatform\Core\Tests\Serializer\JsonEncoderTest::testDecode PHP Method

testDecode() public method

public testDecode ( )
    public function testDecode()
    {
        $this->assertEquals(['foo' => 'bar'], $this->encoder->decode('{"foo":"bar"}', 'json'));
    }