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--SKIPIF--
7<?php
8require_once dirname(__FILE__) .'/skipif.inc';
9?>
10--FILE--
11<?php
12$dom = new DOMDocument('1.0');
13$ref = $dom->createEntityReference('nbsp');
14$dom->appendChild($ref);
15echo $dom->saveXML();
16?>
17--EXPECTF--
18<?xml version="1.0"?>
19&nbsp;
20