helly           Tue Oct 29 11:04:43 2002 EDT

  Added files:                 
    /php4/ext/domxml/tests      skipif.inc xmldoc.phpt 
  Log:
  Add simple parsing test
  
  

Index: php4/ext/domxml/tests/skipif.inc
+++ php4/ext/domxml/tests/skipif.inc
<?php
        if (!extension_loaded('domxml')) die('skip domxml extension not available');
?>

Index: php4/ext/domxml/tests/xmldoc.phpt
+++ php4/ext/domxml/tests/xmldoc.phpt
--TEST--
xmldoc()
--SKIPIF--
<?php require_once('skipif.inc'); ?>
--FILE--
<?php
require_once("domxml_test.inc");

$dom = xmldoc($xmlstr);
if(!$dom) {
  die('Error while parsing the document');
}
var_dump($dom);
?>
--EXPECTF--
object(domdocument)(9) {
  ["name"]=>
  string(9) "#document"
  ["url"]=>
  string(0) ""
  ["version"]=>
  string(3) "1.0"
  ["standalone"]=>
  int(1)
  ["type"]=>
  int(9)
  ["compression"]=>
  int(-1)
  ["charset"]=>
  int(1)
  [0]=>
  int(5)
  [1]=>
  int(%d)
}


-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to