SimpleXMLElement_getDocNamespaces.phpt 267 B

1234567891011
  1. --TEST--
  2. Testing getDocNamespaces() with invalid XML
  3. --SKIPIF--
  4. <?php if (!extension_loaded('simplexml')) die('skip simplexml extension not loaded'); ?>
  5. --FILE--
  6. <?php
  7. $xml = @new SimpleXMLElement("X",1);
  8. var_dump($xml->getDocNamespaces());
  9. ?>
  10. --EXPECT--
  11. bool(false)