Lines Matching refs:message
15 private $message;
53 * @param string $message
57 public function setExpectedMessage(string $message, int $limit, int $repeat = 0)
59 $this->message = ($repeat > 0) ? str_repeat($message, $repeat) : $message;
95 if ($this->message === null) {
96 throw new \LogicException('The message has not been set');
102 $this->pattern = '/^PHP message: (.*?)(\.\.\.)?$/';
104 return $this->error("Unexpected truncated message: {$line}");
116 // this is expecting that the expected message does not end with '...'
136 if ($this->message === null) {
137 throw new \LogicException('The message has not been set');
198 $rem = strlen($this->message) - $this->position;
210 return $this->error("Printed less than the message len");
220 return $this->error("Printed more than the message len");
262 $expectedMessage = $this->message;
264 … $expectedMessage = substr($this->message, $expectedMessageStart, strlen($matchedMessage));
343 "The $type does not match expected message:\n" .
444 'message' => str_repeat('a', 2048),
460 'message' => str_repeat('a', 2900),
466 'message' => str_repeat('a', 2900),
467 'type' => 'message',
472 'message' => str_repeat('a', 20),
473 'type' => 'message',
477 printf("Test message with len %d and limit %d: ", strlen($case['message']), $case['limit']);
479 $logTool->setExpectedMessage($case['message'], $case['limit']);