1--TEST--
2template content indirect removal
3--EXTENSIONS--
4dom
5--SKIPIF--
6<?php
7if (!PHP_DEBUG) { die ("skip only for debug build"); }
8?>
9--FILE--
10<?php
11$dom = Dom\HTMLDocument::createFromString('<template>foo<template>nested</template></template>', LIBXML_NOERROR);
12$head = $dom->head;
13var_dump($dom->debugGetTemplateCount());
14$head->remove();
15var_dump($dom->debugGetTemplateCount());
16unset($head);
17var_dump($dom->debugGetTemplateCount());
18?>
19--EXPECT--
20int(2)
21int(2)
22int(0)
23