Lines Matching refs:pattern
57 private ?string $pattern;
183 $this->pattern = '/^PHP message: (.*?)(\.\.\.)?$/';
184 if (preg_match($this->pattern, $line, $matches) === 0) {
235 $this->pattern = sprintf(
243 $this->pattern = null;
296 $useLine = $this->pattern === null;
301 } elseif (preg_match($this->pattern, $line, $matches) > 0) {
516 …$pattern = sprintf('/^(?:%s )?%s: %s(%s)$/', self::P_TIME, $type, self::P_DEBUG, $expectedMessage);
517 $this->trace("PATTERN: $pattern");
519 return function ($line) use ($expectedMessage, $pattern, $type, $ignoreErrorFor) {
521 if (preg_match($pattern, $line, $matches) === 0) {
539 $pattern,
700 * Expect pattern in the log line.
702 * @param string $pattern Pattern to use.
703 * @param bool $invert Whether to expect pattern not to match.
712 string $pattern,
719 function ($line) use ($pattern) {
720 if (preg_match($pattern, $line) === 1) {
721 $this->traceMatch("Pattern expectation", $pattern, $line);
728 $invert ? null : 'The search pattern not found',
735 return $this->logReader->printError('The search pattern found - PATTERN: ' . $pattern);
745 * @param string|null $pattern
754 string $pattern = null,
760 if ($pattern !== null) {
761 $msg .= "- PATTERN: $pattern\n";
780 * @param string|null $pattern
787 string $pattern = null,
793 …echo "LogTool - " . $this->getMatchDebugMessage($title, $pattern, $line, $expectedMessage, $actual…