Lines Matching refs:html
221 $html = $response->getBody()->getContents();
223 self::assertStringStartsWith('<DOCTYPE html>', $html);
225 $this->validateHtml(substr($html, strlen('<DOCTYPE html>')));
228 protected function validateHtml(string $html): void argument
233 $html = substr($html, strcspn($html, '<>'));
235 if (str_starts_with($html, '>')) {
239 if (str_starts_with($html, '<')) {
240 if (preg_match('~^</([a-z]+)>~', $html, $match)) {
244 $html = substr($html, strlen($match[0]));
245 … } elseif (preg_match('~^<([a-z]+)(?:\s+[a-z_\-]+="[^">]*")*\s*(/?)>~', $html, $match)) {
269 $html = substr($html, strpos($html, '</script>'));
271 $html = substr($html, strlen($match[0]));
274 static::fail('Unrecognised tag: ' . substr($html, 0, 40));
277 } while ($html !== '');