Programming Language PHP

Namespace Oro\Component\MessageQueue\Util

Class JSON

Total Examples 2

2 code examples of PHP Oro\Component\MessageQueue\Util\JSON extracted from open source projects

Was this example useful?
0
                                                    public function testThrowIfValueIsResource(): void
    {
        $this->expectException(\JsonException::class);

        $resource = fopen('php://memory', 'r');
        fclose($resource);

        JSON::encode($resource);
    }
                                            
Was this example useful?
0
                                                    public function testThrowIfMalformedJson(): void
    {
        $this->expectException(\JsonException::class);
        JSON::decode('{]');
    }
                                            
JSON's Other Methods
JSON's Other Methods