cvs: php4 /pear/XML/tests 001.phpt 002.phpt 003.phpt 005.phpt

From: Date: Mon, 31 Dec 2001 11:32:12 +0000
Subject: cvs: php4 /pear/XML/tests 001.phpt 002.phpt 003.phpt 005.phpt
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-1781@lists.php.net to get a copy of this message
mj Mon Dec 31 06:32:12 2001 EDT Modified files: /php4/pear/XML/tests 001.phpt 002.phpt 003.phpt 005.phpt Log: * tabs -> spaces. Index: php4/pear/XML/tests/001.phpt diff -u php4/pear/XML/tests/001.phpt:1.2 php4/pear/XML/tests/001.phpt:1.3 --- php4/pear/XML/tests/001.phpt:1.2 Sat Nov 3 21:06:05 2001 +++ php4/pear/XML/tests/001.phpt Mon Dec 31 06:32:12 2001 @@ -15,25 +15,25 @@ class __TestParser1 extends XML_Parser { function __TestParser1() { - $this->XML_Parser(); + $this->XML_Parser(); } function startHandler($xp, $element, $attribs) { - print "<$element"; - reset($attribs); - while (list($key, $val) = each($attribs)) { - $enc = htmlentities($val); - print " $key=\"$enc\""; - } - print ">"; + print "<$element"; + reset($attribs); + while (list($key, $val) = each($attribs)) { + $enc = htmlentities($val); + print " $key=\"$enc\""; + } + print ">"; } function endHandler($xp, $element) { - print "</$element>\n"; + print "</$element>\n"; } function cdataHandler($xp, $cdata) { - print "<![CDATA[$cdata]]>"; + print "<![CDATA[$cdata]]>"; } function defaultHandler($xp, $cdata) { - + } } error_reporting(1023); Index: php4/pear/XML/tests/002.phpt diff -u php4/pear/XML/tests/002.phpt:1.3 php4/pear/XML/tests/002.phpt:1.4 --- php4/pear/XML/tests/002.phpt:1.3 Sat Nov 3 21:06:05 2001 +++ php4/pear/XML/tests/002.phpt Mon Dec 31 06:32:12 2001 @@ -15,25 +15,25 @@ class __TestParser2 extends XML_Parser { function __TestParser2() { - $this->XML_Parser(); + $this->XML_Parser(); } function startHandler($xp, $element, $attribs) { - print "<$element"; - reset($attribs); - while (list($key, $val) = each($attribs)) { - $enc = htmlentities($val); - print " $key=\"$enc\""; - } - print ">"; + print "<$element"; + reset($attribs); + while (list($key, $val) = each($attribs)) { + $enc = htmlentities($val); + print " $key=\"$enc\""; + } + print ">"; } function endHandler($xp, $element) { - print "</$element>\n"; + print "</$element>\n"; } function cdataHandler($xp, $cdata) { - print "<![CDATA[$cdata]]>"; + print "<![CDATA[$cdata]]>"; } function defaultHandler($xp, $cdata) { - + } } print "new __TestParser2 "; Index: php4/pear/XML/tests/003.phpt diff -u php4/pear/XML/tests/003.phpt:1.3 php4/pear/XML/tests/003.phpt:1.4 --- php4/pear/XML/tests/003.phpt:1.3 Sat Nov 3 21:06:05 2001 +++ php4/pear/XML/tests/003.phpt Mon Dec 31 06:32:12 2001 @@ -15,25 +15,25 @@ class __TestParser3 extends XML_Parser { function __TestParser3() { - $this->XML_Parser(); + $this->XML_Parser(); } function startHandler($xp, $element, $attribs) { - print "<$element"; - reset($attribs); - while (list($key, $val) = each($attribs)) { - $enc = htmlentities($val); - print " $key=\"$enc\""; - } - print ">"; + print "<$element"; + reset($attribs); + while (list($key, $val) = each($attribs)) { + $enc = htmlentities($val); + print " $key=\"$enc\""; + } + print ">"; } function endHandler($xp, $element) { - print "</$element>\n"; + print "</$element>\n"; } function cdataHandler($xp, $cdata) { - print "<![CDATA[$cdata]]>"; + print "<![CDATA[$cdata]]>"; } function defaultHandler($xp, $cdata) { - + } } print "new __TestParser3 "; Index: php4/pear/XML/tests/005.phpt diff -u php4/pear/XML/tests/005.phpt:1.3 php4/pear/XML/tests/005.phpt:1.4 --- php4/pear/XML/tests/005.phpt:1.3 Sat Nov 3 21:06:05 2001 +++ php4/pear/XML/tests/005.phpt Mon Dec 31 06:32:12 2001 @@ -23,21 +23,21 @@ var $output = ''; function TestEncodings1($to, $from) { - $this->XML_Parser($from, 'event', $to); + $this->XML_Parser($from, 'event', $to); } function startHandler($xp, $elem, $attribs) { - $this->output .= "<$elem>"; + $this->output .= "<$elem>"; } function endHandler($xp, $elem) { - $this->output .= "</$elem>"; + $this->output .= "</$elem>"; } function cdataHandler($xp, $data) { - $this->output .= $data; + $this->output .= $data; } function test($data) { -// $this->output = ''; - $this->parseString($data, true); - return $this->output; + // $this->output = ''; + $this->parseString($data, true); + return $this->output; } } @@ -54,14 +54,14 @@ if ($srcenc == $tgtenc) { continue; } - print "Testing $srcenc -> $tgtenc: "; - $p =& new TestEncodings1($tgtenc, $srcenc); - $e = $p->test($input[$srcenc]); - if (PEAR::isError($e)) { - printf("OOPS: %s\n", $e->getMessage()); - } else { - var_dump($e); - } + print "Testing $srcenc -> $tgtenc: "; + $p =& new TestEncodings1($tgtenc, $srcenc); + $e = $p->test($input[$srcenc]); + if (PEAR::isError($e)) { + printf("OOPS: %s\n", $e->getMessage()); + } else { + var_dump($e); + } } }

« previous php.pear.cvs (#1781) next »