diff options
| author | Paul Yang <TeBoring@users.noreply.github.com> | 2019-01-22 15:35:12 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-01-22 15:35:12 -0800 |
| commit | 7f42d6d0bcadb286aa5120bc60441d4b56bacd93 (patch) | |
| tree | 093c313b56ef8b54d67e4ce0b389bf1a7f987934 /php/tests | |
| parent | 1069565a68654fa016cb454c87eca8372b3b8d3f (diff) | |
| download | platform_external_protobuf-7f42d6d0bcadb286aa5120bc60441d4b56bacd93.tar.gz platform_external_protobuf-7f42d6d0bcadb286aa5120bc60441d4b56bacd93.tar.bz2 platform_external_protobuf-7f42d6d0bcadb286aa5120bc60441d4b56bacd93.zip | |
Fix empty FieldMask json encoding/decoding (#5605)
* Fix empty FieldMask json encoding/decoding
* Add failed test to python's conformance failure list
Diffstat (limited to 'php/tests')
| -rw-r--r-- | php/tests/encode_decode_test.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/php/tests/encode_decode_test.php b/php/tests/encode_decode_test.php index 61527e899..4107d65bb 100644 --- a/php/tests/encode_decode_test.php +++ b/php/tests/encode_decode_test.php @@ -1128,4 +1128,11 @@ class EncodeDecodeTest extends TestBase $this->assertSame("\"foo.barBaz,qux\"", $m->serializeToJsonString()); } + public function testDecodeEmptyFieldMask() + { + $m = new FieldMask(); + $m->mergeFromJsonString("\"\""); + $this->assertEquals("", $m->serializeToString()); + } + } |
