Lines Matching refs:message
21 private $message;
59 * @param string $message
63 public function setExpectedMessage(string $message, int $limit, int $repeat = 0)
65 $this->message = ($repeat > 0) ? str_repeat($message, $repeat) : $message;
101 if ($this->message === null) {
102 throw new \LogicException('The message has not been set');
108 $this->pattern = '/^PHP message: (.*?)(\.\.\.)?$/';
110 return $this->error("Unexpected truncated message: {$line}");
122 // this is expecting that the expected message does not end with '...'
142 if ($this->message === null) {
143 throw new \LogicException('The message has not been set');
204 $rem = strlen($this->message) - $this->position;
216 return $this->error("Printed less than the message len");
226 return $this->error("Printed more than the message len");
268 $expectedMessage = $this->message;
270 … $expectedMessage = substr($this->message, $expectedMessageStart, strlen($matchedMessage));
371 "The $type does not match expected message:\n" .
471 'message' => str_repeat('a', 2048),
487 'message' => str_repeat('a', 2900),
493 'message' => str_repeat('a', 2900),
494 'type' => 'message',
499 'message' => str_repeat('a', 20),
500 'type' => 'message',
504 printf("Test message with len %d and limit %d: ", strlen($case['message']), $case['limit']);
506 $logTool->setExpectedMessage($case['message'], $case['limit']);