mustRun(); $output = $process->getOutput() . PHP_EOL . $process->getErrorOutput(); if ($this->enableRegex) { if (!preg_match($this->message, $output)) { throw new ContainerNotReadyException($id, new \RuntimeException('Message not found in logs')); } } else { if (!str_contains($output, $this->message)) { throw new ContainerNotReadyException($id, new \RuntimeException('Message not found in logs')); } } } }