Lines Matching refs:assertSame
38 $this->assertSame(1, $m->getOptionalInt32());
51 $this->assertSame(MAX_INT32, $m->getOptionalInt32());
53 $this->assertSame(MIN_INT32, $m->getOptionalInt32());
57 $this->assertSame(1, $m->getOptionalInt32());
59 $this->assertSame(MAX_INT32, $m->getOptionalInt32());
61 $this->assertSame(MIN_INT32, $m->getOptionalInt32());
65 $this->assertSame(2, $m->getOptionalInt32());
67 $this->assertSame(3, $m->getOptionalInt32());
69 $this->assertSame(MAX_INT32, $m->getOptionalInt32());
71 $this->assertSame(MIN_INT32, $m->getOptionalInt32());
84 $this->assertSame(-1, $m->getOptionalUint32());
86 $this->assertSame(-1, $m->getOptionalUint32());
88 $this->assertSame(MIN_INT32, $m->getOptionalUint32());
92 $this->assertSame(1, $m->getOptionalUint32());
94 $this->assertSame(-1, $m->getOptionalUint32());
96 $this->assertSame(-1, $m->getOptionalUint32());
98 $this->assertSame(MIN_INT32, $m->getOptionalUint32());
102 $this->assertSame(2, $m->getOptionalUint32());
104 $this->assertSame(3, $m->getOptionalUint32());
106 $this->assertSame(-1, $m->getOptionalUint32());
108 $this->assertSame(-1, $m->getOptionalUint32());
110 $this->assertSame(MIN_INT32, $m->getOptionalUint32());
123 $this->assertSame(MAX_INT64, $m->getOptionalInt64());
130 $this->assertSame('1', $m->getOptionalInt64());
132 $this->assertSame(1, $m->getOptionalInt64());
138 $this->assertSame('2', $m->getOptionalInt64());
140 $this->assertSame(2, $m->getOptionalInt64());
145 $this->assertSame('3', $m->getOptionalInt64());
147 $this->assertSame(3, $m->getOptionalInt64());
152 $this->assertSame(MAX_INT64_STRING, $m->getOptionalInt64());
154 $this->assertSame(MAX_INT64, $m->getOptionalInt64());
159 $this->assertSame(MIN_INT64_STRING, $m->getOptionalInt64());
161 $this->assertSame(MIN_INT64, $m->getOptionalInt64());
176 $this->assertSame(MAX_UINT64_STRING, $m->getOptionalUint64());
178 $this->assertSame(MAX_UINT64, $m->getOptionalUint64());
184 $this->assertSame('1', $m->getOptionalUint64());
186 $this->assertSame(1, $m->getOptionalUint64());
192 $this->assertSame('2', $m->getOptionalUint64());
194 $this->assertSame(2, $m->getOptionalUint64());
199 $this->assertSame('3', $m->getOptionalUint64());
201 $this->assertSame(3, $m->getOptionalUint64());
206 $this->assertSame(MAX_UINT64_STRING, $m->getOptionalUint64());
208 $this->assertSame(MAX_UINT64, $m->getOptionalUint64());
340 $this->assertSame(true, $m->getOptionalBool());
344 $this->assertSame(true, $m->getOptionalBool());
348 $this->assertSame(true, $m->getOptionalBool());
352 $this->assertSame(false, $m->getOptionalBool());
365 $this->assertSame('abc', $m->getOptionalString());
369 $this->assertSame('1', $m->getOptionalString());
373 $this->assertSame('1.1', $m->getOptionalString());
377 $this->assertSame('1', $m->getOptionalString());
390 $this->assertSame('abc', $m->getOptionalBytes());
394 $this->assertSame('1', $m->getOptionalBytes());
398 $this->assertSame('1.1', $m->getOptionalBytes());
402 $this->assertSame('1', $m->getOptionalBytes());
424 $this->assertSame(1, $m->getOptionalMessage()->getA());
438 $this->assertSame(1, $m->getOptionalMessage()->getA());
466 $this->assertSame($repeated_int32, $m->getRepeatedInt32());
475 $this->assertSame(0, count($m->getRepeatedInt32()));
480 $this->assertSame("Google\Protobuf\Internal\RepeatedField",
482 $this->assertSame(3, count($m->getRepeatedInt32()));
483 $this->assertSame(1, $m->getRepeatedInt32()[0]);
484 $this->assertSame(2, $m->getRepeatedInt32()[1]);
485 $this->assertSame(3, $m->getRepeatedInt32()[2]);
499 $this->assertSame($map_int32_int32, $m->getMapInt32Int32());
508 $this->assertSame(0, count($m->getMapInt32Int32()));
513 $this->assertSame(3, count($m->getMapInt32Int32()));
514 $this->assertSame(5, $m->getMapInt32Int32()[5]);
515 $this->assertSame(6, $m->getMapInt32Int32()[6]);
516 $this->assertSame(7, $m->getMapInt32Int32()[7]);
527 $this->assertSame("", $m->getMyOneof());
530 $this->assertSame(1, $m->getOneofInt32());
531 $this->assertSame(0.0, $m->getOneofFloat());
532 $this->assertSame('', $m->getOneofString());
533 $this->assertSame(NULL, $m->getOneofMessage());
534 $this->assertSame("oneof_int32", $m->getMyOneof());
537 $this->assertSame(0, $m->getOneofInt32());
538 $this->assertSame(2.0, $m->getOneofFloat());
539 $this->assertSame('', $m->getOneofString());
540 $this->assertSame(NULL, $m->getOneofMessage());
541 $this->assertSame("oneof_float", $m->getMyOneof());
544 $this->assertSame(0, $m->getOneofInt32());
545 $this->assertSame(0.0, $m->getOneofFloat());
546 $this->assertSame('abc', $m->getOneofString());
547 $this->assertSame(NULL, $m->getOneofMessage());
548 $this->assertSame("oneof_string", $m->getMyOneof());
553 $this->assertSame(0, $m->getOneofInt32());
554 $this->assertSame(0.0, $m->getOneofFloat());
555 $this->assertSame('', $m->getOneofString());
556 $this->assertSame(1, $m->getOneofMessage()->getA());
557 $this->assertSame("oneof_message", $m->getMyOneof());
632 $this->assertSame(100, $m->getOptionalInt32());
633 $this->assertSame(42, $m->getOptionalUint32());
634 $this->assertSame(101, $m->getOptionalMessage()->getA());
635 $this->assertSame(2, count($m->getOptionalMessage()->getB()));
636 $this->assertSame(1, $m->getOptionalMessage()->getB()[0]);
637 $this->assertSame(102, $m->getOptionalMessage()->getB()[1]);
639 $this->assertSame(3, count($m->getRepeatedInt32()));
640 $this->assertSame(200, $m->getRepeatedInt32()[2]);
641 $this->assertSame(2, count($m->getRepeatedUint32()));
642 $this->assertSame(3, count($m->getRepeatedString()));
643 $this->assertSame('abc', $m->getRepeatedString()[2]);
644 $this->assertSame(3, count($m->getRepeatedMessage()));
645 $this->assertSame(201, $m->getRepeatedMessage()[2]->getA());
647 $this->assertSame(2, count($m->getMapInt32Int32()));
648 $this->assertSame(300, $m->getMapInt32Int32()[1]);
649 $this->assertSame(301, $m->getMapInt32Int32()[-62]);
650 $this->assertSame(1, count($m->getMapUint32Uint32()));
651 $this->assertSame(2, count($m->getMapStringString()));
652 $this->assertSame('def', $m->getMapStringString()['def']);
654 $this->assertSame(2, count($m->getMapInt32Message()));
655 $this->assertSame(302, $m->getMapInt32Message()[1]->getA());
656 $this->assertSame(303, $m->getMapInt32Message()[2]->getA());
658 $this->assertSame("", $m->getMyOneof());
662 $this->assertSame(101, $m->getOptionalMessage()->getA());
667 $this->assertSame(201, $m->getRepeatedMessage()[2]->getA());
673 $this->assertSame(302, $m->getMapInt32Message()[1]->getA());
681 $this->assertSame(1, $m->getOneofInt32());
687 $this->assertSame(400, $m->getOneofMessage()->getA());
689 $this->assertSame(400, $m->getOneofMessage()->getA());
739 $this->assertSame($n, $m->getOptionalMessage());
740 $this->assertSame(TestMessage\NestedEnum::ZERO, $m->getOptionalNestedEnum());
750 $this->assertSame(1, $m->getPrefixMessage()->getA());
757 $this->assertSame($p, $o->getNestedMessage());
758 $this->assertSame(PrefixTestPrefix\PrefixNestedEnum::ZERO, $o->getNestedEnum());
767 $this->assertSame($n, $m->getNestedMessage());
768 $this->assertSame(TestNamespace\NestedEnum::ZERO, $m->getNestedEnum());
777 $this->assertSame($n, $m->getNestedMessage());
778 $this->assertSame(TestEmptyNamespace\NestedEnum::ZERO, $m->getNestedEnum());
787 $this->assertSame($n, $m->getNestedMessage());
788 $this->assertSame(NoNamespaceMessage\NestedEnum::ZERO, $m->getNestedEnum());
797 $this->assertSame($n, $m->getNestedMessage());
798 $this->assertSame(TestEmptyPackage\NestedEnum::ZERO, $m->getNestedEnum());
809 $this->assertSame($n, $m->getReservedName());
810 $this->assertSame($o, $n->getNestedMessage());
811 $this->assertSame(
1284 $this->assertSame(1, $m->getOptionalInt32());
1285 $this->assertSame(2, $m->getOptionalUInt32());
1296 $this->assertSame("abc", $m->getB());
1455 $this->assertSame('oneof_message', $m->getMyOneof());