1--TEST--
2DOMDocument::createEntityReference() should create a new entity reference node
3--CREDITS--
4Knut Urdalen <knut@php.net>
5#PHPTestFest2009 Norway 2009-06-09 \o/
6--EXTENSIONS--
7dom
8--FILE--
9<?php
10$dom = new DOMDocument('1.0');
11$ref = $dom->createEntityReference('nbsp');
12$dom->appendChild($ref);
13echo $dom->saveXML();
14?>
15--EXPECT--
16<?xml version="1.0"?>
17&nbsp;
18