aboutsummaryrefslogtreecommitdiffhomepage
path: root/php/tests/encode_decode_test.php
diff options
context:
space:
mode:
authorGravatar Paul Yang <TeBoring@users.noreply.github.com>2017-02-08 10:27:54 -0800
committerGravatar GitHub <noreply@github.com>2017-02-08 10:27:54 -0800
commitcba04b19e88dba2c13241b733bf7f595f1463082 (patch)
treeda61ea725e19eadce400ae17df845e04f36bc608 /php/tests/encode_decode_test.php
parentc00274313d03a0a7f10e8f6473541faf3739353b (diff)
Implement json encoding decoding for php. (#2682)
Diffstat (limited to 'php/tests/encode_decode_test.php')
-rw-r--r--php/tests/encode_decode_test.php15
1 files changed, 14 insertions, 1 deletions
diff --git a/php/tests/encode_decode_test.php b/php/tests/encode_decode_test.php
index 992f1631..7eb815ad 100644
--- a/php/tests/encode_decode_test.php
+++ b/php/tests/encode_decode_test.php
@@ -168,9 +168,22 @@ class EncodeDecodeTest extends TestBase
}
}
- public function testDecodeFieldNonExist() {
+ public function testDecodeFieldNonExist()
+ {
$data = hex2bin('c80501');
$m = new TestMessage();
$m->decode($data);
}
+
+ # TODO(teboring): Add test back when php implementation is ready for json
+ # encode/decode.
+ # public function testJsonEncode()
+ # {
+ # $from = new TestMessage();
+ # $this->setFields($from);
+ # $data = $from->jsonEncode();
+ # $to = new TestMessage();
+ # $to->jsonDecode($data);
+ # $this->expectFields($to);
+ # }
}