Programming Language PHP

Namespace Oro\Component\MessageQueue\Util

Class JSON

Method/Function encode

Total Examples 1

1 code examples of PHP Oro\Component\MessageQueue\Util\JSON::encode 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);
    }
                                            
JSON's Other Methods