Lines Matching refs:hardAssert
37 function hardAssert($value, $error_message) function
64 hardAssert($result !== null, 'Call completed with a null response');
107 hardAssert($result !== null, 'Call returned a null response');
109 hardAssert($payload->getType() === Grpc\Testing\PayloadType::COMPRESSABLE,
111 hardAssert(strlen($payload->getBody()) === $response_len,
113 hardAssert($payload->getBody() === str_repeat("\0", $response_len),
135 hardAssert($result->getUsername() === $jsonKey['client_email'],
137 hardAssert(strpos($args['oauth_scope'], $result->getOauthScope()) !== false,
158 hardAssert($args['default_service_account'] === $result->getUsername(),
175 hardAssert($result->getUsername() === $jsonKey['client_email'],
192 hardAssert($result->getUsername() === $jsonKey['client_email'],
226 hardAssert($result->getUsername() === $jsonKey['client_email'],
255 hardAssert($result->getAggregatedPayloadSize() === 74922,
279 hardAssert($i < 4, 'Too many responses');
281 hardAssert(
284 hardAssert(strlen($payload->getBody()) === $sizes[$i],
315 hardAssert($response !== null, 'Server returned too few responses');
317 hardAssert(
320 hardAssert(strlen($payload->getBody()) === $response_lengths[$i],
324 hardAssert($call->read() === null, 'Server returned too many responses');
337 hardAssert($call->read() === null, 'Server returned too many responses');
351 hardAssert($status->code === Grpc\STATUS_CANCELLED,
376 hardAssert($call->getStatus()->code === Grpc\STATUS_CANCELLED,
395 hardAssert($call->getStatus()->code === Grpc\STATUS_DEADLINE_EXCEEDED,
423 hardAssert(array_key_exists($ECHO_INITIAL_KEY, $initial_metadata),
425 hardAssert(
433 hardAssert(array_key_exists($ECHO_TRAILING_KEY, $trailing_metadata),
435 hardAssert(
453 hardAssert(array_key_exists($ECHO_INITIAL_KEY, $streaming_initial_metadata),
455 hardAssert(
460 hardAssert(array_key_exists($ECHO_TRAILING_KEY,
463 hardAssert($streaming_trailing_metadata[$ECHO_TRAILING_KEY][0] ===
479 hardAssert($status->code === 2,
482 hardAssert($status->details === 'test status message',
495 hardAssert($status->code === 2,
498 hardAssert($status->details === 'test status message',
508 hardAssert($status->code === Grpc\STATUS_UNIMPLEMENTED,
517 hardAssert($status->code === Grpc\STATUS_UNIMPLEMENTED,