1--TEST--
2DomDocument::schemaValidate() - Don't add missing attribute default values from schema
3--CREDITS--
4Chris Wright <info@daverandom.com>
5--EXTENSIONS--
6dom
7--FILE--
8<?php
9
10$doc = new DOMDocument;
11
12$doc->load(__DIR__."/book-attr.xml");
13
14$doc->schemaValidate(__DIR__."/book.xsd");
15
16foreach ($doc->getElementsByTagName('book') as $book) {
17    var_dump($book->getAttribute('is-hardback'));
18}
19
20?>
21--EXPECT--
22string(0) ""
23string(4) "true"
24