--TEST-- XML Parser: parse from file --SKIPIF-- --FILE-- "; } function endHandler($xp, $element) { print "\n"; } function cdataHandler($xp, $cdata) { print ""; } function defaultHandler($xp, $cdata) { } } print "new __TestParser2 "; var_dump(strtolower(get_class($o = new __TestParser2()))); print "setInputFile "; print is_resource($o->setInputFile(dirname(__FILE__) . "/test2.xml"))."\n"; print "parse "; var_dump($o->parse()); ?> --EXPECT-- new __TestParser2 string(13) "__testparser2" setInputFile 1 parse bool(true)