Lines Matching refs:assertSame
64 $this->assertSame(
66 $this->assertSame("type.googleapis.com/foo.TestMessage",
69 $this->assertSame($any, $any->setValue($data));
70 $this->assertSame($data, $any->getValue());
80 $this->assertSame($data, $any->getValue());
81 $this->assertSame("type.googleapis.com/foo.TestMessage", $any->getTypeUrl());
124 $this->assertSame("a", $m->getName());
127 $this->assertSame(1, count($m->getMethods()));
130 $this->assertSame(1, count($m->getOptions()));
133 $this->assertSame("a", $m->getVersion());
139 $this->assertSame(1, count($m->getMixins()));
142 $this->assertSame(Syntax::SYNTAX_PROTO2, $m->getSyntax());
147 $this->assertSame("a", $m->getName());
150 $this->assertSame("a", $m->getRequestTypeUrl());
153 $this->assertSame(true, $m->getRequestStreaming());
156 $this->assertSame("a", $m->getResponseTypeUrl());
159 $this->assertSame(true, $m->getResponseStreaming());
162 $this->assertSame(1, count($m->getOptions()));
167 $this->assertSame("a", $m->getName());
170 $this->assertSame("a", $m->getRoot());
178 $this->assertSame("a", $m->getName());
181 $this->assertSame(1, count($m->getEnumvalue()));
184 $this->assertSame(1, count($m->getOptions()));
190 $this->assertSame(Syntax::SYNTAX_PROTO2, $m->getSyntax());
198 $this->assertSame("a", $m->getName());
201 $this->assertSame(1, $m->getNumber());
204 $this->assertSame(1, count($m->getOptions()));
212 $this->assertSame(Kind::TYPE_DOUBLE, $m->getKind());
215 $this->assertSame(Cardinality::CARDINALITY_OPTIONAL, $m->getCardinality());
218 $this->assertSame(1, $m->getNumber());
221 $this->assertSame("a", $m->getName());
224 $this->assertSame("a", $m->getTypeUrl());
227 $this->assertSame(1, $m->getOneofIndex());
230 $this->assertSame(true, $m->getPacked());
233 $this->assertSame(1, count($m->getOptions()));
236 $this->assertSame("a", $m->getJsonName());
239 $this->assertSame("a", $m->getDefaultValue());
246 $this->assertSame(1, count($m->getPaths()));
254 $this->assertSame("a", $m->getName());
264 $this->assertSame("a", $m->getFileName());
271 $this->assertSame(1, count($m->getValues()));
276 $this->assertSame(NullValue::NULL_VALUE, $m->getNullValue());
277 $this->assertSame("null_value", $m->getKind());
280 $this->assertSame(1.0, $m->getNumberValue());
281 $this->assertSame("number_value", $m->getKind());
284 $this->assertSame("a", $m->getStringValue());
285 $this->assertSame("string_value", $m->getKind());
288 $this->assertSame(true, $m->getBoolValue());
289 $this->assertSame("bool_value", $m->getKind());
293 $this->assertSame("struct_value", $m->getKind());
297 $this->assertSame("list_value", $m->getKind());
301 $this->assertSame(1, count($m->getFields()));
311 $this->assertSame(2, $timestamp->getNanos());
320 $this->assertSame(\DateTime::class, get_class($to));
321 $this->assertSame($from->format('U'), $to->format('U'));
322 $this->assertSame($from->format('u'), $to->format('u'));
330 $this->assertSame("a", $m->getName());
333 $this->assertSame(1, count($m->getFields()));
336 $this->assertSame(1, count($m->getOneofs()));
339 $this->assertSame(1, count($m->getOptions()));
345 $this->assertSame(Syntax::SYNTAX_PROTO2, $m->getSyntax());
355 $this->assertSame(2, $duration->getNanos());
362 $this->assertSame(1.0, $m->getValue());
366 $this->assertSame(1.0, $m->getValue());
378 $this->assertSame(1, $m->getValue());
382 $this->assertSame(1, $m->getValue());
386 $this->assertSame(true, $m->getValue());
390 $this->assertSame("a", $m->getValue());
394 $this->assertSame("a", $m->getValue());
405 $this->assertSame($k, $class::name($v));
406 $this->assertSame($v, $class::value($k));