We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 116ebc4 commit eeab3d1Copy full SHA for eeab3d1
php/tests/test2/EncodeDecodeTest.php
@@ -326,6 +326,12 @@ public function testEncodeDecodeOneof()
326
327
}
328
329
+ public function testJsonEncodeEnumFromInitializer()
330
+ {
331
+ $m = new TestMessage(['oneof_enum' => TestEnum::TWO]);
332
+ $this->assertSame('{"oneofEnum":"TWO"}', $m->serializeToJsonString());
333
+ }
334
+
335
public function testJsonEncodeDecodeOneof()
336
{
337
$m = new TestMessage();
0 commit comments