Lines Matching refs:body
54 $body = $response->getBody($this->contentTypes[$type]);
55 if ($body === null) {
60 $this->$method($body, array_merge($this->defaultFields, $fields));
66 * @param string $body
77 string $body,
108 if (!preg_match($pattern, $body)) {
109 echo "ERROR: Expected body does not match pattern\n";
111 var_dump($body);
120 * @param string $body
123 protected function checkStatusPlain(string $body, array $fields)
125 $this->makeStatusCheck($body, $fields, "%s:\s+%s\n");
131 * @param string $body
134 protected function checkStatusHtml(string $body, array $fields)
140 "<body>\n<table>\n";
141 $footer = "\n</table>\n</body></html>";
144 $body,
155 * @param string $body
158 protected function checkStatusXml(string $body, array $fields)
161 $body,
178 * @param string $body
181 protected function checkStatusJson(string $body, array $fields)
184 $body,
204 * @param string $body
207 protected function checkStatusOpenmetrics(string $body, array $fields)
247 if (!preg_match($pattern, $body)) {
248 echo "ERROR: Expected body does not match pattern\n";
250 var_dump($body);