aboutsummaryrefslogtreecommitdiffstats
path: root/php/tests
diff options
context:
space:
mode:
authorPaul Yang <TeBoring@users.noreply.github.com>2019-01-22 15:35:12 -0800
committerGitHub <noreply@github.com>2019-01-22 15:35:12 -0800
commit7f42d6d0bcadb286aa5120bc60441d4b56bacd93 (patch)
tree093c313b56ef8b54d67e4ce0b389bf1a7f987934 /php/tests
parent1069565a68654fa016cb454c87eca8372b3b8d3f (diff)
downloadplatform_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.php7
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());
+ }
+
}