Lines Matching refs:message

32     private string $message;
82 * Set expected message for output logging.
84 * @param string $message
88 public function setExpectedMessage(string $message, int $limit, int $repeat = 0)
90 $this->message = ($repeat > 0) ? str_repeat($message, $repeat) : $message;
130 …llable $matcher Callback checking whether the log line matches the expected message.
131 * @param string|null $notFoundMessage Error message to show if the message is not found.
174 if ($this->message === null) {
175 throw new \LogicException('The message has not been set');
183 $this->pattern = '/^PHP message: (.*?)(\.\.\.)?$/';
185 return $this->error("Unexpected truncated message: {$line}");
197 // this is expecting that the expected message does not end with '...'
212 return $this->match($matcher, 'Truncated message not found');
217 * Check wrapped message.
221 * @param bool $isStdErr Whether the message is written to stderr.
231 if ($this->message === null) {
232 throw new \LogicException('The message has not been set');
248 while (strlen($this->message) !== $this->position) {
249 if ( ! $this->match($matcher, 'Output message not found')) {
274 if ( ! $this->match($suffixMatcher, 'Suffix message not found')) {
308 $rem = strlen($this->message) - $this->position;
321 return $this->error("Printed less than the message len");
332 return $this->error("Printed more than the message len");
351 * Check the message line length - specifically if it's behind the limit.
372 * Check whether matched message part matches the expected message.
374 * @param string $matchedMessage The output message or part of it (match).
376 … * @param bool $isLine Whether the whole log line is provided as a matched message.
386 $expectedMessage = $this->message;
388 … $expectedMessage = substr($this->message, $expectedMessageStart, strlen($matchedMessage));
500 * @param string $pool Pool that is used and prefixes the message.
501 * @param string $ignoreErrorFor Ignore error for supplied string in the message.
516 // Allow expected message to contain %s and %s for any string or number as in run-tests.php
530 // get actual message
563 * @param string|null $pool Pool that is used and prefixes the message.
564 * @param string $ignoreErrorFor Ignore error for supplied string in the message.
594 * @param string|null $pool Pool that is used and prefixes the message.
595 * @param string $ignoreErrorFor Ignore error for supplied string in the message.
620 $invert ? null : "The $type does not match expected message",
627 return $this->error("The $type matches unexpected message");
746 * Get match debug message.
802 * Print tracing message - only in debug .
815 * Save error message if the line does not contain ignored string.