Lines Matching refs:message
14 private $message;
47 * @param string $message
51 public function setExpectedMessage(string $message, int $limit, int $repeat = 0)
53 $this->message = ($repeat > 0) ? str_repeat($message, $repeat) : $message;
81 if ($this->message === null) {
82 throw new \LogicException('The message has not been set');
88 $this->pattern = '/^PHP message: (.*?)(\.\.\.)?$/';
90 return $this->error("Unexpected truncated message: {$line}");
102 // this is expecting that the expected message does not end with '...'
122 if ($this->message === null) {
123 throw new \LogicException('The message has not been set');
184 $rem = strlen($this->message) - $this->position;
196 return $this->error("Printed less than the message len");
206 return $this->error("Printed more than the message len");
248 $expectedMessage = $this->message;
250 … $expectedMessage = substr($this->message, $expectedMessageStart, strlen($matchedMessage));
329 "The $type does not match expected message:\n" .
430 'message' => str_repeat('a', 2048),
446 'message' => str_repeat('a', 2900),
452 'message' => str_repeat('a', 2900),
453 'type' => 'message',
458 'message' => str_repeat('a', 20),
459 'type' => 'message',
463 printf("Test message with len %d and limit %d: ", strlen($case['message']), $case['limit']);
465 $logTool->setExpectedMessage($case['message'], $case['limit']);