Lines Matching refs:assertSame
37 $this->assertSame(1, $value);
42 $this->assertSame(-1, $value);
47 $this->assertSame(-1, $value);
57 $this->assertSame(1, $value);
62 $this->assertSame(-1, $value);
67 $this->assertSame(-1, $value);
116 $this->assertSame(0, $value);
120 $this->assertSame(-1, $value);
124 $this->assertSame(1, $value);
149 $this->assertSame(0x78563412, $value);
158 $this->assertSame("8671175386481439762", $value);
160 $this->assertSame(0x7856341278563412, $value);
169 $this->assertSame(0x78563412, $value);
177 $this->assertSame(1.0, $value);
186 $this->assertSame(false, $value);
190 $this->assertSame(true, $value);
198 $this->assertSame(1.0, $value);
207 $this->assertSame("8671175386481439762", $value);
209 $this->assertSame(0x7856341278563412, $value);
215 $this->assertSame(0, GPBWire::zigZagEncode32(0));
216 $this->assertSame(1, GPBWire::zigZagEncode32(-1));
217 $this->assertSame(2, GPBWire::zigZagEncode32(1));
218 $this->assertSame(3, GPBWire::zigZagEncode32(-2));
219 $this->assertSame(0x7FFFFFFE, GPBWire::zigZagEncode32(0x3FFFFFFF));
220 $this->assertSame(0x7FFFFFFF, GPBWire::zigZagEncode32(0xC0000000));
221 $this->assertSame(0x7FFFFFFF, GPBWire::zigZagEncode32(-1073741824));
223 $this->assertSame(0, GPBWire::zigZagDecode32(0));
224 $this->assertSame(-1, GPBWire::zigZagDecode32(1));
225 $this->assertSame(1, GPBWire::zigZagDecode32(2));
226 $this->assertSame(-2, GPBWire::zigZagDecode32(3));
227 $this->assertSame(0x3FFFFFFF, GPBWire::zigZagDecode32(0x7FFFFFFE));
228 $this->assertSame(-1073741824, GPBWire::zigZagDecode32(0x7FFFFFFF));
229 $this->assertSame(0x7FFFFFFF, GPBWire::zigZagDecode32(0xFFFFFFFE));
230 $this->assertSame((int)-2147483648,GPBWire::zigZagDecode32(0xFFFFFFFF));
233 $this->assertSame(-2, GPBWire::zigZagEncode32(0x7FFFFFFF));
234 $this->assertSame(-1, GPBWire::zigZagEncode32(0x80000000));
235 $this->assertSame('0', GPBWire::zigZagEncode64(0));
236 $this->assertSame('1', GPBWire::zigZagEncode64(-1));
237 $this->assertSame('2', GPBWire::zigZagEncode64(1));
238 $this->assertSame('3', GPBWire::zigZagEncode64(-2));
239 $this->assertSame(
242 $this->assertSame(
245 $this->assertSame(
248 $this->assertSame(
251 $this->assertSame(
255 $this->assertSame(
260 $this->assertSame('0', GPBWire::zigZagDecode64(0));
261 $this->assertSame('-1', GPBWire::zigZagDecode64(1));
262 $this->assertSame('1', GPBWire::zigZagDecode64(2));
263 $this->assertSame('-2', GPBWire::zigZagDecode64(3));
265 $this->assertSame(4294967294, GPBWire::zigZagEncode32(0x7FFFFFFF));
266 $this->assertSame(4294967295, GPBWire::zigZagEncode32(0x80000000));
267 $this->assertSame(0, GPBWire::zigZagEncode64(0));
268 $this->assertSame(1, GPBWire::zigZagEncode64(-1));
269 $this->assertSame(2, GPBWire::zigZagEncode64(1));
270 $this->assertSame(3, GPBWire::zigZagEncode64(-2));
271 $this->assertSame(0x7FFFFFFE, GPBWire::zigZagEncode64(0x3FFFFFFF));
272 $this->assertSame(
275 $this->assertSame(
278 $this->assertSame(
281 $this->assertSame(
284 $this->assertSame(
288 $this->assertSame(0, GPBWire::zigZagDecode64(0));
289 $this->assertSame(-1, GPBWire::zigZagDecode64(1));
290 $this->assertSame(1, GPBWire::zigZagDecode64(2));
291 $this->assertSame(-2, GPBWire::zigZagDecode64(3));
295 $this->assertSame(0, GPBWire::zigZagDecode32(GPBWire::zigZagEncode32(0)));
296 $this->assertSame(1, GPBWire::zigZagDecode32(GPBWire::zigZagEncode32(1)));
297 $this->assertSame(-1, GPBWire::zigZagDecode32(GPBWire::zigZagEncode32(-1)));
298 $this->assertSame(14927,
300 $this->assertSame(-3612,
318 $this->assertSame(1, sizeof($file_desc_set->getFile()));
321 $this->assertSame("test_include.proto", $file_desc->getName());
322 $this->assertSame("bar", $file_desc->getPackage());
323 $this->assertSame(0, sizeof($file_desc->getDependency()));
324 $this->assertSame(1, sizeof($file_desc->getMessageType()));
325 $this->assertSame(0, sizeof($file_desc->getEnumType()));
326 $this->assertSame("proto3", $file_desc->getSyntax());
329 $this->assertSame("TestInclude", $desc->getName());
330 $this->assertSame(1, sizeof($desc->getField()));
331 $this->assertSame(0, sizeof($desc->getNestedType()));
332 $this->assertSame(0, sizeof($desc->getEnumType()));
333 $this->assertSame(0, sizeof($desc->getOneofDecl()));
336 $this->assertSame("a", $field->getName());
337 $this->assertSame(1, $field->getNumber());
338 $this->assertSame(GPBLabel::OPTIONAL, $field->getLabel());
339 $this->assertSame(GPBType::INT32, $field->getType());
362 $this->assertSame('16384', $var);
364 $this->assertSame(16384, $var);
372 $this->assertSame('16384', $var);
374 $this->assertSame(16384, $var);
378 $this->assertSame('32768', $var);
380 $this->assertSame(32768, $var);
432 $this->assertSame(16384, $var);
438 $this->assertSame(16384, $var);
440 $this->assertSame(32768, $var);
446 $this->assertSame(16384, $var);
454 $this->assertSame(16384, $tag);
456 $this->assertSame(0, $tag);
464 $this->assertSame(0, $tag);
467 $this->assertSame(16384, $tag);
476 $this->assertSame(hex2bin('808001'), $buffer);
485 $this->assertSame(hex2bin('808001'), $output->getData());
490 $this->assertSame(hex2bin('D5FFFFFFFFFFFFFFFF01'), $output->getData());
497 $this->assertSame(hex2bin('D5FFFFFFFFFFFFFFFF01'), $output->getData());
504 $this->assertSame(hex2bin('2E000000'), $output->getData());
511 $this->assertSame(hex2bin('2F00000000000000'), $output->getData());
518 $this->assertSame(518, $m->byteSize());
525 $this->assertSame(166, $m->byteSize());
563 $this->assertSame(false, $m->getOptionalBool());
564 $this->assertSame('', $m->getOptionalString());
565 $this->assertSame('', $m->getOptionalBytes());
566 $this->assertSame(null, $m->getOptionalMessage());