Lines Matching refs:assertSame

55         $this->assertSame("true", $m->serializeToJsonString());
69 $this->assertSame("1.5", $m->serializeToJsonString());
83 $this->assertSame("1.5", $m->serializeToJsonString());
97 $this->assertSame("1", $m->serializeToJsonString());
111 $this->assertSame("1", $m->serializeToJsonString());
146 $this->assertSame("a", $m->getValue());
153 $this->assertSame("\"a\"", $m->serializeToJsonString());
160 $this->assertSame("a", $m->getValue());
167 $this->assertSame("\"YQ==\"", $m->serializeToJsonString());
184 $this->assertSame(strlen($expected), strlen($m->serializeToJsonString()));
195 $this->assertSame(bin2hex(TestUtil::getGoldenTestMessage()),
240 $this->assertSame(1, $n->getOneofInt32());
246 $this->assertSame(2.0, $n->getOneofFloat());
252 $this->assertSame('abc', $n->getOneofString());
260 $this->assertSame(1, $n->getOneofMessage()->getA());
267 $this->assertSame("oneof_enum", $n->getMyOneof());
268 $this->assertSame(TestEnum::ZERO, $n->getOneofEnum());
274 $this->assertSame("oneof_string", $n->getMyOneof());
275 $this->assertSame("", $n->getOneofString());
282 $this->assertSame("oneof_message", $n->getMyOneof());
295 $this->assertSame("oneof_enum", $n->getMyOneof());
296 $this->assertSame(TestEnum::ONE, $n->getOneofEnum());
302 $this->assertSame("oneof_string", $n->getMyOneof());
303 $this->assertSame("a", $n->getOneofString());
309 $this->assertSame("oneof_bytes", $n->getMyOneof());
310 $this->assertSame("bbbb", $n->getOneofBytes());
317 $this->assertSame("oneof_message", $n->getMyOneof());
325 $this->assertSame(TestUtil::getGoldenTestPackedMessage(),
349 $this->assertSame(TestUtil::getGoldenTestUnpackedMessage(),
397 $this->assertSame($encoded, bin2hex($data));
431 $this->assertSame("08ffffffffffffffffff01", bin2hex($data));
451 $this->assertSame("", $data);
660 $this->assertSame(bin2hex($from), bin2hex($to));
667 $this->assertSame(bin2hex($from), bin2hex($to));
674 $this->assertSame(bin2hex($from), bin2hex($to));
681 $this->assertSame(bin2hex($from), bin2hex($to));
689 $this->assertSame("", bin2hex($to));
697 $this->assertSame("8a0100", bin2hex($to));
705 $this->assertSame("fa0200", bin2hex($to));
713 $this->assertSame("ba050408011200", bin2hex($to));
721 $this->assertSame("9a0400", bin2hex($to));
730 $this->assertSame(1, $m->getOptionalInt32());
736 $this->assertSame(1, $m->getOptionalInt32());
742 $this->assertSame(1, $m->getOptionalInt32());
748 $this->assertSame(1, $m->getOptionalInt32());
754 $this->assertSame(1, $m->getOptionalInt32());
760 $this->assertSame(1, $m->getOptionalInt32());
766 $this->assertSame(1, $m->getOptionalInt32());
772 $this->assertSame(1, $m->getOptionalInt32());
778 $this->assertSame(1, $m->getOptionalInt32());
784 $this->assertSame(1, $m->getOptionalInt32());
790 $this->assertSame(1, $m->getOptionalInt32());
796 $this->assertSame(1, $m->getOptionalInt32());
802 $this->assertSame(1, $m->getOptionalInt32());
808 $this->assertSame(1, $m->getOptionalInt32());
814 $this->assertSame(1, $m->getOptionalInt32());
820 $this->assertSame(1, $m->getOptionalInt32());
826 $this->assertSame(1, $m->getOptionalInt32());
832 $this->assertSame(1, $m->getOptionalInt32());
838 $this->assertSame(1, $m->getOptionalInt32());
844 $this->assertSame(1, $m->getOptionalInt32());
894 $this->assertSame("a", $m->getStringValue());
898 $this->assertSame(1.5, $m->getNumberValue());
902 $this->assertSame(true, $m->getBoolValue());
906 $this->assertSame("null_value", $m->getKind());
910 $this->assertSame("list_value", $m->getKind());
914 $this->assertSame("struct_value", $m->getKind());
921 $this->assertSame("\"a\"", $m->serializeToJsonString());
925 $this->assertSame("1.5", $m->serializeToJsonString());
929 $this->assertSame("true", $m->serializeToJsonString());
933 $this->assertSame("null", $m->serializeToJsonString());
940 $this->assertSame(1.0, $m->getValues()[0]->getNumberValue());
950 $this->assertSame("[1.5]", $m->serializeToJsonString());
957 $this->assertSame('{"test":[]}', $m->serializeToJsonString());
964 $this->assertSame(1.0, $m->getFields()["a"]
976 $this->assertSame("{\"a\":1.5}", $m->serializeToJsonString());
983 $this->assertSame('{"test":{}}', $m->serializeToJsonString());
995 $this->assertSame("type.googleapis.com/foo.TestMessage",
997 $this->assertSame("0801", bin2hex($m1->getValue()));
1003 $this->assertSame("type.googleapis.com/foo.TestMessage",
1005 $this->assertSame("0801", bin2hex($m2->getValue()));
1012 $this->assertSame("type.googleapis.com/foo.TestMessage",
1014 $this->assertSame("08011002", bin2hex($m3->getValue()));
1026 $this->assertSame("type.googleapis.com/foo.TestMessage",
1028 $this->assertSame("0801", bin2hex($m1->getAny()->getValue()));
1034 $this->assertSame("type.googleapis.com/foo.TestMessage",
1036 $this->assertSame("0801", bin2hex($m2->getAny()->getValue()));
1043 $this->assertSame("type.googleapis.com/foo.TestMessage",
1045 $this->assertSame("08011002", bin2hex($m3->getAny()->getValue()));
1058 $this->assertSame("type.googleapis.com/google.protobuf.Int32Value",
1060 $this->assertSame("0801", bin2hex($m1->getAny()->getValue()));
1099 $this->assertSame(
1107 $this->assertSame(
1119 $this->assertSame(
1133 $this->assertSame($data1, $data2);
1137 $this->assertSame("foo.bar_baz", $m->getPaths()[0]);
1138 $this->assertSame("qux", $m->getPaths()[1]);
1145 $this->assertSame("\"foo.barBaz,qux\"", $m->serializeToJsonString());
1159 $this->assertSame("{\"mapInt32Int32\":{\"0\":0}}",
1164 $this->assertSame("{\"mapStringString\":{\"\":\"\"}}",
1173 $this->assertSame("{\"mapStringString\":{\"1\":\"1\"}}", $data);