Lines Matching refs:body
54 * @param string $body
58 private function matchError(string $body, string $pattern): void
60 echo "ERROR: Expected body does not match pattern\n";
62 var_dump($body);
82 $body = $response->getBody($this->contentTypes[$type]);
83 if ($body === null) {
88 $this->$method($body, array_merge($this->defaultFields, $fields));
94 * @param string $body
105 string $body,
136 if (!preg_match($pattern, $body)) {
137 $this->matchError($body, $pattern);
144 * @param string $body
147 protected function checkStatusPlain(string $body, array $fields)
149 $this->makeStatusCheck($body, $fields, "%s:\s+%s\n");
155 * @param string $body
158 protected function checkStatusHtml(string $body, array $fields)
164 "<body>\n<table>\n";
165 $footer = "\n</table>\n</body></html>";
168 $body,
179 * @param string $body
182 protected function checkStatusXml(string $body, array $fields)
185 $body,
202 * @param string $body
205 protected function checkStatusJson(string $body, array $fields)
208 $body,
228 * @param string $body
231 protected function checkStatusOpenmetrics(string $body, array $fields)
271 if (!preg_match($pattern, $body)) {
272 $this->matchError($body, $pattern);