1--TEST--
2NamedNodeMap dimensions errors
3--EXTENSIONS--
4dom
5--FILE--
6<?php
7
8$dom = Dom\XMLDocument::createFromString('<root a="1" b="2" c="3"></root>');
9$attributes = $dom->documentElement->attributes;
10
11try {
12    $attributes[][0] = 1;
13} catch (Error $e) {
14    echo $e->getMessage(), "\n";
15}
16
17?>
18--EXPECT--
19Cannot append to Dom\NamedNodeMap
20