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