1--TEST--
2TokenList: Test equality
3--EXTENSIONS--
4dom
5--FILE--
6<?php
7
8$dom = DOM\XMLDocument::createFromString('<root class="a b c"><child/></root>');
9$element = $dom->documentElement;
10
11var_dump($element->classList === $element->classList);
12$list = $element->classList;
13var_dump($list === $list);
14var_dump($list === $element->classList);
15
16var_dump($list === $element->firstChild->classList);
17
18?>
19--EXPECT--
20bool(true)
21bool(true)
22bool(true)
23bool(false)
24