formatOutput = true; $root = $dom->createElement('d:root'); $dom->appendChild($root); $root->setAttribute('xmlns:d', 'DAV:'); $locked = new TooManyMatches(); $locked->serialize(new DAV\Server(), $root); $output = $dom->saveXML(); $expected = ' '; $this->assertEquals($expected, $output); } }