Sanity check extensions by inline their test code

This commit is contained in:
Joseph Bielawski
2023-09-13 13:07:22 +02:00
committed by Jerry Ma
parent f1d5916090
commit be32190829
2 changed files with 11 additions and 2 deletions

View File

@@ -4,5 +4,5 @@ declare(strict_types=1);
assert(class_exists('\\DOMDocument'));
$doc = new DOMDocument();
$doc->loadHtml("<html><head><meta charset=\"UTF-8\"><meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\"></head><body id='app'>Hello</body></html>");
$doc->loadHtml('<html><head><meta charset="UTF-8"><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"></head><body id="app">Hello</body></html>');
assert($doc->getElementById('app')->nodeValue === 'Hello');